<?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: Sales Document flow - Update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-flow-update/m-p/2301003#M502847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are several FM s but for this type of requirement use badis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Durgaprasad Kare&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2007 20:51:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-06T20:51:40Z</dc:date>
    <item>
      <title>Sales Document flow - Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-flow-update/m-p/2301001#M502845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      i have to update the sales docuement flow with group delivery number (grp delivery number created using VG01 and entry can be seen in VBSS table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to update using the FM 'RV_DOCUMENT_FLOW_UPDATE_U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly share the knowledge if u have worked earlier in this type of scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 16:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-flow-update/m-p/2301001#M502845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T16:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Document flow - Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-flow-update/m-p/2301002#M502846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the link :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="95519"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 17:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-flow-update/m-p/2301002#M502846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T17:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Document flow - Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-flow-update/m-p/2301003#M502847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are several FM s but for this type of requirement use badis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Durgaprasad Kare&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 20:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-flow-update/m-p/2301003#M502847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T20:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Document flow - Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-flow-update/m-p/2301004#M502848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a badi that i found for this requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this badi BADI_SD_DOCUMENTFLOW in the implementation enhancements tab select /SPE/BADI_SD_DOCFLOW implementation .inthis select the class and in the class select the method add subsequent docuement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this method create an enhancement spot (as this is done in ECC6) and write the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method IF_EX_BADI_SD_DOCUMENTFLOW~ADD_SUBSEQUENT_DOCUMENT.&lt;/P&gt;&lt;P&gt;"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1 )\TY:/SAPCEM/CL_IM_SD_DOCU_FLOW\IN:IF_EX_BADI_SD_DOCUMENTFLOW\ME:ADD_SUBSEQUENT_DOCUMENT\SE:BEGIN\EI D&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-Start: (1 )----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENHANCEMENT 1 Z_ESCR53. "active version&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-uname = 'DKARE'.&lt;/P&gt;&lt;P&gt;DATA: gs_vbfa LIKE LINE OF f_vbfa_tab.&lt;/P&gt;&lt;P&gt;data lt_vbfa type table of vbfa.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;gs_vbfa&amp;gt; LIKE LINE OF f_vbfa_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Types declaration for group delivery data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES : BEGIN OF ty_s_grpdel,&lt;/P&gt;&lt;P&gt;sammg TYPE sammg,&lt;/P&gt;&lt;P&gt;vbeln TYPE vbeln,&lt;/P&gt;&lt;P&gt;END OF ty_s_grpdel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sales data for the deliveries.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPES : BEGIN OF ty_s_sales,&lt;/P&gt;&lt;P&gt;vbeln type lips-vbeln,&lt;/P&gt;&lt;P&gt;vgbel TYPE lips-vgbel,&lt;/P&gt;&lt;P&gt;vgpos TYPE lips-vgpos,&lt;/P&gt;&lt;P&gt;END OF ty_s_sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sales order data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;types : begin of ty_S_vbap,&lt;/P&gt;&lt;P&gt;vbeln type vbap-vbeln,&lt;/P&gt;&lt;P&gt;posnr type vbap-posnr,&lt;/P&gt;&lt;P&gt;end of ty_S_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;variables declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA : gt_grpdel TYPE STANDARD TABLE OF ty_s_grpdel,&lt;/P&gt;&lt;P&gt;st_grpdel TYPE ty_s_grpdel,&lt;/P&gt;&lt;P&gt;gt_sales TYPE STANDARD TABLE OF ty_s_sales,&lt;/P&gt;&lt;P&gt;st_sales TYPE ty_s_sales,&lt;/P&gt;&lt;P&gt;lt_vbap type standard table of ty_S_vbap,&lt;/P&gt;&lt;P&gt;st_vbap type ty_S_vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Constants declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CONSTANTS: gc_s VALUE 'S',&lt;/P&gt;&lt;P&gt;gc_2 VALUE '2',&lt;/P&gt;&lt;P&gt;gc_3 VALUE '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE f_vbfa_tab WITH KEY VBTYP_V = 'C' INTO gs_vbfa.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;READ TABLE f_vbfa_tab WITH KEY VBTYP_V = 'J' INTO gs_vbfa.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;READ TABLE f_vbfa_tab WITH KEY VBTYP_V = 'M' INTO gs_vbfa.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if gs_vbfa-VBTYP_V = 'C'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;from vbap&lt;/P&gt;&lt;P&gt;into table lt_vbap&lt;/P&gt;&lt;P&gt;where vbeln = gs_vbfa-vbelV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;vgbel&lt;/P&gt;&lt;P&gt;vgpos&lt;/P&gt;&lt;P&gt;FROM lips&lt;/P&gt;&lt;P&gt;INTO TABLE gt_sales&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN lt_vbap&lt;/P&gt;&lt;P&gt;WHERE VGBEL EQ lt_vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT sammg vbeln&lt;/P&gt;&lt;P&gt;FROM vbss&lt;/P&gt;&lt;P&gt;INTO TABLE gt_grpdel&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_sales&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ gt_sales-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif gs_vbfa-VBTYP_V = 'J'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;vgbel&lt;/P&gt;&lt;P&gt;vgpos&lt;/P&gt;&lt;P&gt;FROM lips&lt;/P&gt;&lt;P&gt;INTO TABLE gt_sales&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ gs_vbfa-vbelV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT sammg vbeln&lt;/P&gt;&lt;P&gt;FROM vbss&lt;/P&gt;&lt;P&gt;INTO TABLE gt_grpdel&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_sales&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ gt_sales-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif gs_vbfa-VBTYP_V = 'M'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vbeln&lt;/P&gt;&lt;P&gt;vgbel&lt;/P&gt;&lt;P&gt;vgpos&lt;/P&gt;&lt;P&gt;FROM vbrp&lt;/P&gt;&lt;P&gt;INTO TABLE gt_sales&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ gs_vbfa-vbelV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT sammg vbeln&lt;/P&gt;&lt;P&gt;FROM vbss&lt;/P&gt;&lt;P&gt;INTO TABLE gt_grpdel&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_sales&lt;/P&gt;&lt;P&gt;WHERE vbeln EQ gt_sales-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;break dkare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data gv_tmp_index type sy-tabix.&lt;/P&gt;&lt;P&gt;clear gs_vbfa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table f_vbfa_tab into gs_vbfa&lt;/P&gt;&lt;P&gt;with key vbtyp_v = 'C'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;gv_tmp_index = sy-tabix.&lt;/P&gt;&lt;P&gt;loop at gt_grpdel into st_grpdel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_tmp_index = gv_tmp_index + 1.&lt;/P&gt;&lt;P&gt;clear gs_vbfa.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbelv = st_grpdel-vbeln.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbtyp_n = 'J'.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbeln = st_grpdel-sammg.&lt;/P&gt;&lt;P&gt;gs_vbfa-stufe = '02'.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbtyp_v = 'J'.&lt;/P&gt;&lt;P&gt;INSERT gs_vbfa INTO f_vbfa_tab index gv_tmp_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&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;read table f_vbfa_tab into gs_vbfa&lt;/P&gt;&lt;P&gt;with key vbtyp_v = 'J'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;gv_tmp_index = sy-tabix.&lt;/P&gt;&lt;P&gt;loop at gt_grpdel into st_grpdel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_tmp_index = gv_tmp_index .&lt;/P&gt;&lt;P&gt;clear gs_vbfa.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbelv = st_grpdel-vbeln.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbtyp_n = 'J'.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbeln = st_grpdel-sammg.&lt;/P&gt;&lt;P&gt;gs_vbfa-stufe = '01'.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbtyp_v = 'J'.&lt;/P&gt;&lt;P&gt;INSERT gs_vbfa INTO f_vbfa_tab index gv_tmp_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&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;read table f_vbfa_tab into gs_vbfa&lt;/P&gt;&lt;P&gt;with key vbtyp_v = 'M'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_grpdel into st_grpdel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_tmp_index = gv_tmp_index .&lt;/P&gt;&lt;P&gt;clear gs_vbfa.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbelv = st_grpdel-vbeln.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbtyp_n = 'J'.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbeln = st_grpdel-sammg.&lt;/P&gt;&lt;P&gt;gs_vbfa-stufe = '02'.&lt;/P&gt;&lt;P&gt;gs_vbfa-vbtyp_v = 'J'.&lt;/P&gt;&lt;P&gt;INSERT gs_vbfa INTO f_vbfa_tab index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDENHANCEMENT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$&lt;/STRONG&gt;$-End: (1 )----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------------------" /&gt;&lt;P&gt;$&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;endmethod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2007 20:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-document-flow-update/m-p/2301004#M502848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-06T20:54:25Z</dc:date>
    </item>
  </channel>
</rss>

