Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: Check for BDC in SD_COND_SAVE_A Badi

$
0
0

Hi Chauki,

 

I meant Business object, I have used BUS3005 for my purpose and used SAP_WAPI_START_WORKFLOW, Function module as there is no triggering event in above business object I have mentioned.

 

Below is the sample code for your reference, I have commented do_commit in it,
All I wanted to know if I am triggering WF through BDC then why my data is not getting saved.

 

CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
             EXPORTING
               task              ='WS90000004'
*             LANGUAGE            = SY-LANGU
*              do_commit           = 'X'
*             USER                = SY-UNAME
*             START_ASYNCHRONOUS  = ' '
*             DESIRED_START_DATE  =
*             DESIRED_START_TIME  =
*             DESIRED_START_ZONLO = SY-ZONLO
*             IFS_XML_CONTAINER   =
             IMPORTING
               return_code         = lv_ret_code
               workitem_id         = lv_wi
               new_status          = lv_status
             TABLES
               input_container     = lt_cont
               message_lines       = lt_message
               message_struct      = lt_struc
               agents              = lt_agent.


Viewing all articles
Browse latest Browse all 9159

Trending Articles



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