<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CALLING BDC IN WORKFLOW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842760#M357969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ramu &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am tryin to set a breakpoint in  BO but after placing the breakpoint when i save the BO the breakpoint gets lost so help me with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur help but i think i need a bit more from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jan 2007 12:12:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-12T12:12:17Z</dc:date>
    <item>
      <title>CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842751#M357960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to call a bdc in my workflow based on the user decission i.e. after user makes a particular decission it has to call BDC. I am using a call transaction statment for calling my BDC, I have defined a FM for the same the code i have written is : call transaction 'zapprove'  after this i have made a business object based on this and defined the task. I am calling the task after the user decission in order to run the BDC but it is not updating the required table. I have checked the BDC as well as FM and BO all of them are working fine so i am not able to find the particular error. Please help me on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 15:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842751#M357960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T15:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842752#M357961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;    If BO and BDC are working fine than it would be a probelm while passing data from workflow to BO. So, Keep a break point in your BO for the method for which BDC executes, and test the workflow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramu N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 16:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842752#M357961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T16:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842753#M357962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks ramu &lt;/P&gt;&lt;P&gt;but i didnt got you completely so can please explain it abit as my BO have only one method i.e to call BDC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 16:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842753#M357962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T16:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842754#M357963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you passing some data in function module?&lt;/P&gt;&lt;P&gt;You can call this transaction through a report having a selection screen....whatever you enter in the selection screen is passed through method (workflow-task-method).&lt;/P&gt;&lt;P&gt;Then pass those datas in ur bdc.&lt;/P&gt;&lt;P&gt;In your method direclty write the code ...which will be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zcrm_cr_dr_audit_zvap6 WITH p_vbeln = wa_zvap6-vbeln&lt;/P&gt;&lt;P&gt;                              WITH p_status = wa_zvap6-status&lt;/P&gt;&lt;P&gt;                              WITH p_order = wa_zvap6-serv_issue&lt;/P&gt;&lt;P&gt;                              WITH p_r_doc = wa_zvap6-ref_doc....etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 16:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842754#M357963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T16:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842755#M357964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your business object go the method 'call BDC' and click on Program than you will go to the coding in the business object there keep a break point there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then start the  workflow the workflow stops at the break point when the task for which you are using the  method executes than check whether the BO method is working fine or not. Some times the data would not be passed to the BO in that case check the binding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramu N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2007 16:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842755#M357964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-11T16:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842756#M357965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks shweta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i am using the same code as you said and i am still having the problem so is there any other possible method to make it working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 05:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842756#M357965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T05:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842757#M357966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code I am using this to upload leave data for T-Code PA30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have used FM to meet my reuqirement. My BO method will call the function module which in turn uses BDC to update the corresponding tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the business object  method i have called the function module,  here OBJECT-KEY-NUMBER is the Keyfield in the BO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BEGIN_METHOD UPLOAD CHANGING CONTAINER.&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'ZHR_LEAVEFORM_UPLOAD_2001'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       LEAVENUMBER = OBJECT-KEY-NUMBER&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       FORM_NOT_FOUND = 01&lt;/P&gt;&lt;P&gt;       NOT_UPDATED = 02&lt;/P&gt;&lt;P&gt;       OTHERS = 03.&lt;/P&gt;&lt;P&gt;   CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;     WHEN 0.            " OK&lt;/P&gt;&lt;P&gt;     WHEN 01.    " to be implemented&lt;/P&gt;&lt;P&gt;     WHEN 02.    " to be implemented&lt;/P&gt;&lt;P&gt;     WHEN OTHERS.       " to be implemented&lt;/P&gt;&lt;P&gt;   ENDCASE.&lt;/P&gt;&lt;P&gt; END_METHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module i am usinf BDC to update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(LEAVENUMBER) TYPE  ZHR_LEAVE-LEAVENUMBER&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      FORM_NOT_FOUND&lt;/P&gt;&lt;P&gt;*"      NOT_UPDATED&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;  DATA : V_BEGDA TYPE CHAR10,&lt;/P&gt;&lt;P&gt;         V_ENDDA TYPE CHAR10,&lt;/P&gt;&lt;P&gt;         V_TEMP TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR OK-CODE.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE *&lt;/P&gt;&lt;P&gt;                FROM ZHR_LEAVE&lt;/P&gt;&lt;P&gt;                WHERE LEAVENUMBER = LEAVENUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    RAISE FORM_NOT_FOUND.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE ZHR_LEAVE-BEGDA TO V_BEGDA USING EDIT MASK '__.__.____'.&lt;/P&gt;&lt;P&gt;  WRITE ZHR_LEAVE-ENDDA TO V_ENDDA USING EDIT MASK '__.__.____'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM BDC_DYNPRO      USING 'SAPMP50A' '1000'.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                '=INS'.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'RP50G-PERNR'&lt;/P&gt;&lt;P&gt;                                 ZHR_LEAVE-PERNR.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'RP50G-TIMR6'&lt;/P&gt;&lt;P&gt;                                'X'.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'RP50G-BEGDA'&lt;/P&gt;&lt;P&gt;                                 V_BEGDA.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'RP50G-ENDDA'&lt;/P&gt;&lt;P&gt;                                 V_ENDDA.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                'RP50G-SUBTY'.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'RP50G-SUBTY'&lt;/P&gt;&lt;P&gt;                                 ZHR_LEAVE-LGART.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'RP50G-CHOIC'&lt;/P&gt;&lt;P&gt;                                '2001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM BDC_DYNPRO      USING 'MP200000' '2000'.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                'P2001-STDAZ'.&lt;/P&gt;&lt;P&gt;  PERFORM BDC_FIELD       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                '=UPD'.&lt;/P&gt;&lt;P&gt;  IF ZHR_LEAVE-LGART = '0020'.&lt;/P&gt;&lt;P&gt;    V_TEMP = V_BEGDA - V_ENDDA.&lt;/P&gt;&lt;P&gt;    IF V_TEMP = '0'.&lt;/P&gt;&lt;P&gt;      PERFORM BDC_FIELD       USING 'P2001-BEGUZ'&lt;/P&gt;&lt;P&gt;                                     ZHR_LEAVE-FROMTIME.&lt;/P&gt;&lt;P&gt;      PERFORM BDC_FIELD       USING 'P2001-ENDUZ'&lt;/P&gt;&lt;P&gt;                                     ZHR_LEAVE-TOTIME.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  CALL TRANSACTION 'PA30' USING IT_BDCDATA MODE 'N' UPDATE 'S' MESSAGES&lt;/P&gt;&lt;P&gt;                                INTO IT_MESSAGES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    ZHR_LEAVE-STATUS = 'S'.&lt;/P&gt;&lt;P&gt;    UPDATE ZHR_LEAVE.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        CLIENT = SY-MANDT&lt;/P&gt;&lt;P&gt;        GROUP  = 'LEAVE_2001'&lt;/P&gt;&lt;P&gt;        KEEP   = 'X'&lt;/P&gt;&lt;P&gt;        USER   = SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        TCODE     = 'PA30'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        DYNPROTAB = IT_BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BDC_CLOSE_GROUP'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    ZHR_LEAVE-STATUS = 'C'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramu N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 06:32:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842757#M357966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T06:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842758#M357967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ramu thanks a lot for your help but my problem is still there i am sending the whole codes that i am using in order to get BDC triggered from workflow just go through it and suggest me where i am going wrong. I also tried ur method but the problem remains to be same so please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FM CODE .&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="96" type="ul"&gt;&lt;P&gt;FUNCTION ZBAPI_APPROVE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(ZPERNR1) LIKE  ZAPPROVE-ZPERNR OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(RETURN) LIKE  BAPIRETURN STRUCTURE  BAPIRETURN&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT ZPZ03_BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING LIST TO MEMORY  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FM ENDS****************************************************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************&lt;STRONG&gt;BDC&lt;/STRONG&gt;******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZPZ03_BDC&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:ZPMC_B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_ZPMC_B LIKE ZPMC_B OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      WA_ZPMC_B LIKE LINE OF IT_ZPMC_B.&lt;/P&gt;&lt;P&gt;DATA:BDCTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ZBANKN(14),&lt;/P&gt;&lt;P&gt;      DATE1(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PARAMETERS: P_PERNR LIKE ZPMC_B-ZPERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM ZPMC_B INTO WA_ZPMC_B&lt;/P&gt;&lt;P&gt;                   WHERE ZSTATUS = 'WAITING'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ZBANKN = WA_ZPMC_B-ZBANKN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLEHC3' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'Q0009_ESS-SUBTYPE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=CHAN'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'Q0009_ESS-SUBTYPE'&lt;/P&gt;&lt;P&gt;                              '0'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLEHC3' '0200'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'P0009-BANKN'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SAVE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        DATE_INTERNAL = SY-DATUM&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        DATE_EXTERNAL = DATE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'P0009-BEGDA'&lt;/P&gt;&lt;P&gt;                              DATE1.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'P0009-BANKS'&lt;/P&gt;&lt;P&gt;                              WA_ZPMC_B-ZBANKS.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'P0009-BANKL'&lt;/P&gt;&lt;P&gt;                              WA_ZPMC_B-ZBANKL.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'P0009-BANKN'&lt;/P&gt;&lt;P&gt;                              WA_ZPMC_B-ZBANKN.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'P0009-ZLSCH'&lt;/P&gt;&lt;P&gt;                              WA_ZPMC_B-ZZLSCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION  'PZ03' USING BDCTAB MODE 'N'&lt;/P&gt;&lt;P&gt;                                     UPDATE 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WA_ZPMC_B-ZA_DATE = SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WA_ZPMC_B-ZSTATUS = 'COMPLETED'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MODIFY ZPMC_B  FROM WA_ZPMC_B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;  CLEAR BDCTAB.&lt;/P&gt;&lt;P&gt;  BDCTAB-PROGRAM  = PROGRAM.&lt;/P&gt;&lt;P&gt;  BDCTAB-DYNPRO   = DYNPRO.&lt;/P&gt;&lt;P&gt;  BDCTAB-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Insert field                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;P&gt;    CLEAR BDCTAB.&lt;/P&gt;&lt;P&gt;    BDCTAB-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDCTAB-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDCTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************&lt;STRONG&gt;BDC ENDS&lt;/STRONG&gt;*************************************&lt;/P&gt;&lt;P&gt;************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************************&lt;STRONG&gt;BO&lt;/STRONG&gt;***********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;          Implementation of object type ZAPPROVE             *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE &amp;lt;OBJECT&amp;gt;.&lt;/P&gt;&lt;P&gt;BEGIN_DATA OBJECT.  " Do not change.. DATA is generated&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;only private members may be inserted into structure private&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;" BEGIN OF PRIVATE,&lt;/P&gt;&lt;P&gt;"   to declare private attributes remove comments and&lt;/P&gt;&lt;P&gt;"   insert private attributes here ...&lt;/P&gt;&lt;P&gt;" END OF PRIVATE,&lt;/P&gt;&lt;P&gt;  KEY LIKE SWOTOBJID-OBJKEY.&lt;/P&gt;&lt;P&gt;END_DATA OBJECT.    " Do not change.. DATA is generated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BEGIN_METHOD ZBAPIAPPROVE CHANGING CONTAINER.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;      ZPERNR1 TYPE ZAPPROVE-ZPERNR,&lt;/P&gt;&lt;P&gt;      RETURN LIKE BAPIRETURN.&lt;/P&gt;&lt;P&gt;  SWC_GET_ELEMENT CONTAINER 'Zpernr1' ZPERNR1.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZBAPI_APPROVE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ZPERNR1 = ZPERNR1&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      RETURN = RETURN&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS = 01.&lt;/P&gt;&lt;P&gt;    CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;      WHEN 0.            " OK&lt;/P&gt;&lt;P&gt;      WHEN OTHERS.       " to be implemented&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;    SWC_SET_ELEMENT CONTAINER 'Return' RETURN.&lt;/P&gt;&lt;P&gt;  END_METHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************&lt;STRONG&gt;BO ENDS&lt;/STRONG&gt;**********************************************&lt;/P&gt;&lt;P&gt;************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i test my BO it is working perfectly and as far as i know there is no programming part included during task defination so i am not able to follow up where i am going wrong.&lt;/P&gt;&lt;P&gt;Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Anand&lt;/P&gt;&lt;P&gt;saggi.saurav@gmail.com.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 11:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842758#M357967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T11:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842759#M357968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I think you BO and FM are perfectly right. I think you are going wrong some where in the workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said to keep the break point in your BO, keep the break point at&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZBAPI_APPROVE'&lt;/P&gt;&lt;P&gt;and test your workflow the workflow stops when it reaches the Task for which this method executes, if it does not stop means that this method is not called in any of your tasks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramu N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 12:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842759#M357968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T12:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842760#M357969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ramu &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am tryin to set a breakpoint in  BO but after placing the breakpoint when i save the BO the breakpoint gets lost so help me with this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur help but i think i need a bit more from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 12:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842760#M357969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T12:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842761#M357970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saurabh,&lt;/P&gt;&lt;P&gt;You must have declared parameters in your method...and used it as container element also.&lt;/P&gt;&lt;P&gt;Show me the code you have sritten for that...(htat set_elemnt_container and Get_element_container ) part of code.&lt;/P&gt;&lt;P&gt;I hope you know that when you declare the parameters in method it is case sensitive.&lt;/P&gt;&lt;P&gt;I dont't know how to attach a doc over here....if you give me your mail id i can send you some screenshots to explain it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 12:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842761#M357970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T12:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842762#M357971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SHWETA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My email id is saggi.saurav@gmail.com so you can mail me the screenshots on this and i will post the codes in half a hour after crosschecking my codes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 12:34:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842762#M357971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T12:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842763#M357972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to keep the break point in your FM and do the testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramu N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 12:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842763#M357972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T12:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: CALLING BDC IN WORKFLOW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842764#M357973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks to all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem has been resolved fully and i am really thankfull to all of you for your help. The basic problem in calling BDC was that I didn't assigned my Approver the authorization to use the Transaction PZ03 which I was trying to update using BDC, &lt;/P&gt;&lt;P&gt;There has been no problem with the codes as being said by Ramu.N whome i am really thankful for going through my codes and giving his suggestion. The Screenshots sent to me by Shweta has been also been very helpfull to me,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So once again Thanks to you all out there for providing the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saurabh Anand&lt;/P&gt;&lt;P&gt;saggi.saurav@gmail.com.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2007 04:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-bdc-in-workflow/m-p/1842764#M357973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-16T04:54:03Z</dc:date>
    </item>
  </channel>
</rss>

