Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

SWE_GET_ELEMNT is returning a sy-subrc 8.

$
0
0

When i change an order using iw32 or create one using iw36 , i have a pop-up generated to populate some text. This text is supposed to be updated in the long text of the order.

To achieve this i have created a Z bor copying BUS2007 and created an event longtextneedupdate. This event is called from the user exit that gets triggered when i change the order. I have written the below code in the exit .

swc_container cont_event.

swc_set_table cont_event c_longtext lt_tline. (lt_tline has the text entered in the pop-up.)

CALL FUNCTION 'SWE_EVENT_CREATE_FOR_UPD_TASK'

                EXPORTING

                  objtype           = BUS2007

                  objkey            = AUFNR

                  event             = LONGTEXTNEEDUPDATE

                TABLES

                  event_container   = cont_event

                EXCEPTIONS

                  objtype_not_found = 1

                  OTHERS            = 2.

Then in the FM that i have attached to the event i am doing the following

CONSTANTS:cal_objkey(11)  type c value '_EVT_OBJKEY',

            cal_longtext(8) type c value 'LongText',

swc_get_element event_container cal_objkey  lv_obkey.

 

 

  lv_aufnr = lv_obkey.

 

 

  swc_get_element event_container cal_longtext lt_tline.

 

but lt_tline is empty.

 

I have maintained the paramter LongText in for the event of type tline.

 

I have also maintained entry in SWETYPV.

 

Can you please tell me where am i going wrong.

 

 

SWE_GET_ELEMNT is returning a sy-subrc 8.

 

Please help urgently.


Viewing all articles
Browse latest Browse all 3160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>