<?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: BDC Session method - Header &amp; Line item in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394348#M191282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;I cont upload only header data bcz just look at f-65, in that Transaction first screen contain header data followed by Line item information Posting key &amp;amp; Account No.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2006 08:54:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-13T08:54:50Z</dc:date>
    <item>
      <title>BDC Session method - Header &amp; Line item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394346#M191280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All..&lt;/P&gt;&lt;P&gt;I am doing an Interface to Journal upload. Transaction code is f-65. In this I have to upload Header data &amp;amp; Line Items data. I am using BDC Session method. For this I did Recording (Tr..shdb). By using this recording I am uploading the data from Excel file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working for only for first one record, means header &amp;amp; line item. For second record there is no header I suppose to upload Line item only. I am trying to do this but it is not working. I am getting Error..&lt;/P&gt;&lt;P&gt;No batch input data for screen SAPLF040 0700.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is data, after executing the pgm I am printing all internal table data in Grid. It is printing exactly line my Excel file.&lt;/P&gt;&lt;P&gt;For line item I am checking if first field is not HDR then I have to upload Line items, other wise it upload header &amp;amp; line item.&lt;/P&gt;&lt;P&gt;How I must do?&lt;/P&gt;&lt;P&gt;Every time I must upload the same header item for each &amp;amp; every line item or is there any other way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 08:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394346#M191280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T08:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Session method - Header &amp; Line item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394347#M191281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u  can make  two internal table 1st for header data and  second  for line  item  data....&lt;/P&gt;&lt;P&gt;suppose u have   1st internal table itab1.&lt;/P&gt;&lt;P&gt;fill 2nd  internal table based  on 1st internal table for line  item vlues...&lt;/P&gt;&lt;P&gt;now  work  like ...&lt;/P&gt;&lt;P&gt;1st  fill header data and now  make  loop on scen on item lavel data  and  fill all the item level  by  itab2.&lt;/P&gt;&lt;P&gt; now again   goes  for  2nd  header data by itab1 and  for  corresponding header data  filled line  item  data again .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 08:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394347#M191281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T08:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Session method - Header &amp; Line item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394348#M191282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;I cont upload only header data bcz just look at f-65, in that Transaction first screen contain header data followed by Line item information Posting key &amp;amp; Account No.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 08:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394348#M191282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T08:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Session method - Header &amp; Line item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394349#M191283</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;  Flat file should have the separater for Header record &amp;amp; item record, for ex. header can be denoted with the record type 'H' and the item line can be denoted with the record type 'I', to process the flat file contents after uploading into single internal table, the data needs tobe segregated based on H &amp;amp; I into two different internal tables, when recording you need to pass the header fields where ever header info is required and pass item details as header, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 08:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394349#M191283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T08:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Session method - Header &amp; Line item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394350#M191284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just  check   there  is option for  fast data  entry.....&lt;/P&gt;&lt;P&gt;where  u  can  enter all the  line  item...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 09:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394350#M191284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T09:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Session method - Header &amp; Line item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394351#M191285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need a flag indicating start of a new record.This will allow you to sagrgate.I'll give you an example.&lt;/P&gt;&lt;P&gt;Your test data (it is a hypotheticlal data..not for f-65)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header pasrt  Item Part&lt;/P&gt;&lt;P&gt;H  1000  100  12345  fhgdfjhj  1000 20&lt;/P&gt;&lt;P&gt;              34569  dbmnb.bl  250  10&lt;/P&gt;&lt;P&gt;H  1000  200  47859  bshfvgbhb 400  30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming this data is your upload file, you need pass data for header screen i.e. first screen only if the first field of your itab is 'H'.  &lt;/P&gt;&lt;P&gt;You copy your iatb into itab1 and check whether in the next line flag contains 'H', if so code to call SAVE command.&lt;/P&gt;&lt;P&gt;Hope this hepls.Please give points if this is helpful.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Abhijit Moholkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 09:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394351#M191285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T09:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Session method - Header &amp; Line item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394352#M191286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need a flag indicating start of a new record.This will allow you to sagrgate.I'll give you an example.&lt;/P&gt;&lt;P&gt;Your test data (it is a hypotheticlal data..not for f-65)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Header past    Item Part
H 1000 100   12345  fhgdfjhj  1000 20
             34569  dbmnb.bl  250  10
H 1000 200   47859  bshfvgbhb 400  30&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Assuming this data is your upload file, you need pass data for header screen i.e. first screen only if the first field of your itab is 'H'. &lt;/P&gt;&lt;P&gt;You copy your iatb into itab1 and check whether in the next line flag contains 'H', if so code to call SAVE command.&lt;/P&gt;&lt;P&gt;Hope this hepls.Please give points if this is helpful.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Abhijit Moholkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 09:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394352#M191286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T09:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Session method - Header &amp; Line item</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394353#M191287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this code this may be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  YBADRI_ME21_PRG1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF T_SOURCE OCCURS 1,&lt;/P&gt;&lt;P&gt;           LIFNR TYPE ELIFN,&lt;/P&gt;&lt;P&gt;           EKORG TYPE EKORG,&lt;/P&gt;&lt;P&gt;           EKGRP TYPE EKGRP,&lt;/P&gt;&lt;P&gt;           EMATN TYPE EMATN,&lt;/P&gt;&lt;P&gt;           MENGE(5) TYPE N,&lt;/P&gt;&lt;P&gt;           NETPR(4) TYPE N,&lt;/P&gt;&lt;P&gt;           WERKS TYPE EWERK,&lt;/P&gt;&lt;P&gt;       END OF T_SOURCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF T_HEADER OCCURS 1,&lt;/P&gt;&lt;P&gt;            LIFNR TYPE ELIFN,&lt;/P&gt;&lt;P&gt;            EKORG TYPE EKORG,&lt;/P&gt;&lt;P&gt;            EKGRP TYPE EKGRP,&lt;/P&gt;&lt;P&gt;       END OF T_HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF T_ITEM OCCURS 1,&lt;/P&gt;&lt;P&gt;           EMATN TYPE EMATNR,&lt;/P&gt;&lt;P&gt;           MENGE(5) TYPE N,&lt;/P&gt;&lt;P&gt;           NETPR(4) TYPE N,&lt;/P&gt;&lt;P&gt;           WERKS TYPE EWERK,&lt;/P&gt;&lt;P&gt;        END OF T_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BDCDATA TYPE BDCDATA OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   FILENAME                      = 'D:\ME21A.TXT'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADLEN                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LINE_EXIT                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TRUNCLEN                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_FORM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_PROG                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_D_FORMAT                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                      = T_SOURCE&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONVERSION_ERROR              = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_ERROR                 = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TABLE_WIDTH           = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CUSTOMER_ERROR                = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                  = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 11&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT T_SOURCE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WRITE : T_SOURCE-LIFNR,  T_SOURCE-EKORG, T_SOURCE-EKGRP,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*T_SOURCE-WERKS, T_SOURCE-EMATN, T_SOURCE-MENGE, T_SOURCE-NETPR.&lt;/P&gt;&lt;P&gt;*ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_SOURCE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   AT NEW LIFNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     T_HEADER-LIFNR = T_SOURCE-LIFNR.&lt;/P&gt;&lt;P&gt;     T_HEADER-EKORG = T_SOURCE-EKORG.&lt;/P&gt;&lt;P&gt;     T_HEADER-EKGRP = T_SOURCE-EKGRP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     APPEND T_HEADER.&lt;/P&gt;&lt;P&gt;    ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    T_ITEM-EMATN = T_SOURCE-EMATN.&lt;/P&gt;&lt;P&gt;    T_ITEM-MENGE = T_SOURCE-MENGE.&lt;/P&gt;&lt;P&gt;    T_ITEM-NETPR = T_SOURCE-NETPR.&lt;/P&gt;&lt;P&gt;    T_ITEM-WERKS = T_SOURCE-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND T_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT T_HEADER.&lt;/P&gt;&lt;P&gt;*WRITE : / T_HEADER. "-LIFNR.", T_HEADER-EKORG, T_HEADER-EKGRP.&lt;/P&gt;&lt;P&gt;*ENDLOOP.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*LOOP AT T_ITEM.&lt;/P&gt;&lt;P&gt;*WRITE : / T_ITEM. "-LIFNR.", T_HEADER-EKORG, T_HEADER-EKGRP.&lt;/P&gt;&lt;P&gt;*ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMM06E'     '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'          'EKKO-LIFNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'           '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'EKKO-LIFNR'           T_HEADER-LIFNR.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM06E-BSART'          'NB'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM06E-BEDAT'          '21.06.2006'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'EKKO-EKORG'           T_HEADER-EKORG.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'EKKO-EKGRP'           T_HEADER-EKGRP.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM06E-LPEIN'          'T'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM06E-WERKS'          ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : I TYPE C VALUE '1'.&lt;/P&gt;&lt;P&gt;DATA : FNAM(20) TYPE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMM06E'             '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'           'EKPO-WERKS(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'           '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'EKPO-EMATN( ' I ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_field       using FNAM       T_ITEM-EMATN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'EKPO-MENGE( ' I ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_field       using FNAM       T_ITEM-MENGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'EKPO-NETPR( ' I ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_field       using FNAM      T_ITEM-NETPR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'EKPO-WERKS( ' I ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      perform bdc_field       using FNAM       T_ITEM-WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I = I + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMM06E'             '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'           'EKPO-NETPR(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'           '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM06E-EBELP'          '10'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'EKPO-NETPR(01)'       '         50,00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMM06E'             '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'           'RM06E-EBELP'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'           '=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RM06E-EBELP'          '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'ME21' USING BDCDATA MODE 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;       Start new screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;  BDCDATA-PROGRAM  = PROGRAM.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNPRO   = DYNPRO.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;/P&gt;&lt;P&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;  IF FVAL &amp;lt;&amp;gt; SPACE.&lt;/P&gt;&lt;P&gt;    CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;    BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 10:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-session-method-header-line-item/m-p/1394353#M191287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T10:20:03Z</dc:date>
    </item>
  </channel>
</rss>

