<?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 coping scheduling  agreement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/coping-scheduling-agreement/m-p/2334909#M513982</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 creating scheduling  agreement from scheduling  agreement using BAPI_SALESORDER_CREATEFROMDAT2. What are the fields to be passed? I am passing schedule line information, but it is not getting copied. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Useful answers will be rewarded.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanmay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 13:22:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-18T13:22:33Z</dc:date>
    <item>
      <title>coping scheduling  agreement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coping-scheduling-agreement/m-p/2334909#M513982</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 creating scheduling  agreement from scheduling  agreement using BAPI_SALESORDER_CREATEFROMDAT2. What are the fields to be passed? I am passing schedule line information, but it is not getting copied. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Useful answers will be rewarded.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tanmay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 13:22:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coping-scheduling-agreement/m-p/2334909#M513982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: coping scheduling  agreement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coping-scheduling-agreement/m-p/2334910#M513983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to pass values to BAPISCHDL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the example program :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ifile1(200) occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      userial_number(10),&lt;/P&gt;&lt;P&gt;      uauart like vbak-auart value 'TA',&lt;/P&gt;&lt;P&gt;      uvtweg like vbak-vtweg value '01',&lt;/P&gt;&lt;P&gt;      uspart like vbak-spart value '01',&lt;/P&gt;&lt;P&gt;      umatnr like vbap-matnr,&lt;/P&gt;&lt;P&gt;      p_vbeln like bapivbeln-vbeln,&lt;/P&gt;&lt;P&gt;      s_return like bapiret2 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      izvariantmap like zvariantmap occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      variant_ind,&lt;/P&gt;&lt;P&gt;      uindex type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BAPI structure declarations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: s_header like bapisdhd1,&lt;/P&gt;&lt;P&gt;      s_item_in like bapisditm occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      s_partner like bapiparnr occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      s_schedule_in like bapischdl occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of ifile2 occurs 0,&lt;/P&gt;&lt;P&gt;        serial_number(10),        "User name&lt;/P&gt;&lt;P&gt;        auart like vbak-auart,    "Order type&lt;/P&gt;&lt;P&gt;        vkorg like vbak-vkorg,    "Sales org&lt;/P&gt;&lt;P&gt;        vtweg like vbak-vtweg,    "Distribution Ch.&lt;/P&gt;&lt;P&gt;        spart like vbak-spart,    "Division&lt;/P&gt;&lt;P&gt;        kunnr like kna1-kunnr,    "Customer&lt;/P&gt;&lt;P&gt;        vdatu like sy-datum,      "Requested delivery date&lt;/P&gt;&lt;P&gt;        lifsk like vbak-lifsk,    "Delivery Block&lt;/P&gt;&lt;P&gt;        faksk like vbak-faksk,    "Billing block&lt;/P&gt;&lt;P&gt;        kvgr1 like vbak-kvgr1,    "Delivery Model&lt;/P&gt;&lt;P&gt;        kvgr2 like vbak-kvgr2,    "Delivery Zone&lt;/P&gt;&lt;P&gt;        delco like vbkd-delco,    "Delivery Time.&lt;/P&gt;&lt;P&gt;        matnr like vbap-matnr,    "Material number&lt;/P&gt;&lt;P&gt;        werks like vbap-werks,    "Plant&lt;/P&gt;&lt;P&gt;        menge(15),                "Quantity&lt;/P&gt;&lt;P&gt;        uom like bapiitemin-sales_unit,                   "Sales UOM&lt;/P&gt;&lt;P&gt;        variant_config,           "Variant Config Indicator&lt;/P&gt;&lt;P&gt;        steak_ind,&lt;/P&gt;&lt;P&gt;        char_code(2),             "Characteristic Name&lt;/P&gt;&lt;P&gt;        char_value(40).            "Characteristic Value&lt;/P&gt;&lt;P&gt;data: end of ifile2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ifile3 like ifile2,&lt;/P&gt;&lt;P&gt;      S_BAPICUVAL   LIKE BAPICUVAL OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      S_BAPICUCFG   LIKE BAPICUCFG OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      S_BAPICUINS   LIKE BAPICUINS OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_file(128).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from zvariantmap into table izvariantmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;         FILENAME                = p_file&lt;/P&gt;&lt;P&gt;         FILETYPE                = 'DAT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;         DATA_TAB                = ifile2&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         CONVERSION_ERROR        = 1&lt;/P&gt;&lt;P&gt;         INVALID_TABLE_WIDTH     = 2&lt;/P&gt;&lt;P&gt;         INVALID_TYPE            = 3&lt;/P&gt;&lt;P&gt;         NO_BATCH                = 4&lt;/P&gt;&lt;P&gt;         UNKNOWN_ERROR           = 5&lt;/P&gt;&lt;P&gt;         GUI_REFUSE_FILETRANSFER = 6&lt;/P&gt;&lt;P&gt;         OTHERS                  = 7.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ifile2.&lt;/P&gt;&lt;P&gt;  uindex = sy-tabix.&lt;/P&gt;&lt;P&gt;  if ifile2-serial_number is initial.&lt;/P&gt;&lt;P&gt;      ifile2-serial_number = userial_number.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;      userial_number = ifile2-serial_number.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if ifile2-auart is initial.&lt;/P&gt;&lt;P&gt;    ifile2-auart = uauart.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if ifile2-vkorg is initial.&lt;/P&gt;&lt;P&gt;    ifile2-vkorg = '0001'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if ifile2-vtweg is initial.&lt;/P&gt;&lt;P&gt;    ifile2-vtweg = uvtweg.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if ifile2-spart is initial.&lt;/P&gt;&lt;P&gt;    ifile2-spart = uspart.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if ifile2-werks is initial.&lt;/P&gt;&lt;P&gt;    ifile2-werks = '1000'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  modify ifile2 index uindex.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ifile2.&lt;/P&gt;&lt;P&gt;  ifile3 = ifile2.&lt;/P&gt;&lt;P&gt;  at new serial_number.&lt;/P&gt;&lt;P&gt;    refresh: s_item_in,&lt;/P&gt;&lt;P&gt;             s_partner,&lt;/P&gt;&lt;P&gt;             s_schedule_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear: s_item_in,&lt;/P&gt;&lt;P&gt;           s_partner,&lt;/P&gt;&lt;P&gt;           s_schedule_in.&lt;/P&gt;&lt;P&gt;    sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    s_header-purch_no_c = ifile3-serial_number.&lt;/P&gt;&lt;P&gt;    s_header-doc_type = ifile3-auart.&lt;/P&gt;&lt;P&gt;    if s_header-doc_type = 'OR'.&lt;/P&gt;&lt;P&gt;      s_header-doc_type = 'TA'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if not ( ifile3-vkorg is initial ).&lt;/P&gt;&lt;P&gt;      unpack ifile3-vkorg to ifile3-vkorg.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if not ( ifile3-vtweg is initial ).&lt;/P&gt;&lt;P&gt;      unpack ifile3-vtweg to ifile3-vtweg.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if not ( ifile3-spart is initial ).&lt;/P&gt;&lt;P&gt;      unpack ifile3-spart to ifile3-spart.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    s_header-sales_org = ifile3-vkorg.&lt;/P&gt;&lt;P&gt;    s_header-distr_chan = ifile3-vtweg.&lt;/P&gt;&lt;P&gt;    s_header-division = ifile3-spart.&lt;/P&gt;&lt;P&gt;    if not ( ifile3-lifsk is initial ).&lt;/P&gt;&lt;P&gt;      s_header-dlv_block = ifile3-lifsk.&lt;/P&gt;&lt;P&gt;      unpack s_header-dlv_block to s_header-dlv_block.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if not ( ifile3-faksk is initial ).&lt;/P&gt;&lt;P&gt;      s_header-bill_block = ifile3-faksk.&lt;/P&gt;&lt;P&gt;      unpack s_header-bill_block to s_header-bill_block.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if not ( ifile3-kvgr1 is initial ).&lt;/P&gt;&lt;P&gt;      s_header-cust_grp1  = ifile3-kvgr1.&lt;/P&gt;&lt;P&gt;      unpack s_header-cust_grp1 to s_header-cust_grp1.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      s_header-cust_grp1  = '003'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if not ( ifile3-kvgr2 is initial ).&lt;/P&gt;&lt;P&gt;      s_header-cust_grp2  = ifile3-kvgr2.&lt;/P&gt;&lt;P&gt;      unpack s_header-cust_grp2 to s_header-cust_grp2.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if not ( ifile3-delco is initial ).&lt;/P&gt;&lt;P&gt;      s_header-dlv_time  = ifile3-delco.&lt;/P&gt;&lt;P&gt;      unpack s_header-dlv_time to s_header-dlv_time.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    s_header-req_date_h = ifile3-vdatu.&lt;/P&gt;&lt;P&gt;    s_partner-partn_role = 'AG'.&lt;/P&gt;&lt;P&gt;    s_partner-partn_numb = ifile3-kunnr.&lt;/P&gt;&lt;P&gt;    unpack s_partner-partn_numb to s_partner-partn_numb.&lt;/P&gt;&lt;P&gt;    append s_partner.&lt;/P&gt;&lt;P&gt;    refresh: s_bapicucfg,&lt;/P&gt;&lt;P&gt;             s_bapicuins,&lt;/P&gt;&lt;P&gt;             s_bapicuval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    clear:   s_bapicucfg,&lt;/P&gt;&lt;P&gt;             s_bapicuins,&lt;/P&gt;&lt;P&gt;             s_bapicuval,&lt;/P&gt;&lt;P&gt;             variant_ind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build sales order detail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not ( ifile2-matnr is initial ).&lt;/P&gt;&lt;P&gt;    s_item_in-material = ifile2-matnr.&lt;/P&gt;&lt;P&gt;    s_item_in-itm_number = s_item_in-itm_number + 10.&lt;/P&gt;&lt;P&gt;    unpack s_item_in-material to s_item_in-material.&lt;/P&gt;&lt;P&gt;    if not ( ifile2-uom is initial ).&lt;/P&gt;&lt;P&gt;      s_item_in-sales_unit = ifile2-uom.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      clear s_item_in-sales_unit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    translate s_item_in-sales_unit to upper case.&lt;/P&gt;&lt;P&gt;    s_item_in-po_itm_no = s_item_in-po_itm_no + 10.&lt;/P&gt;&lt;P&gt;    unpack s_item_in-po_itm_no to s_item_in-po_itm_no.&lt;/P&gt;&lt;P&gt;    s_item_in-plant = ifile2-werks.&lt;/P&gt;&lt;P&gt;    append s_item_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    s_schedule_in-itm_number = s_item_in-itm_number.&lt;/P&gt;&lt;P&gt;    s_schedule_in-req_qty = ifile2-menge.&lt;/P&gt;&lt;P&gt;    s_schedule_in-req_qty = s_schedule_in-req_qty. " * 1000.&lt;/P&gt;&lt;P&gt;    append s_schedule_in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if ifile2-variant_config = 'X'.&lt;/P&gt;&lt;P&gt;      s_bapicucfg-posex = s_bapicucfg-posex + 10.&lt;/P&gt;&lt;P&gt;      s_bapicucfg-config_id = s_bapicucfg-config_id + 10.&lt;/P&gt;&lt;P&gt;      s_bapicucfg-root_id = s_bapicucfg-root_id + 1.&lt;/P&gt;&lt;P&gt;      unpack: s_bapicucfg-posex to  s_bapicucfg-posex,&lt;/P&gt;&lt;P&gt;              s_bapicucfg-config_id to s_bapicucfg-config_id,&lt;/P&gt;&lt;P&gt;              s_bapicucfg-root_id to s_bapicucfg-root_id.&lt;/P&gt;&lt;P&gt;      append s_bapicucfg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      s_bapicuins-config_id = s_bapicucfg-config_id.&lt;/P&gt;&lt;P&gt;      s_bapicuins-inst_id = s_bapicucfg-root_id.&lt;/P&gt;&lt;P&gt;      s_bapicuins-obj_type = 'MARA'.&lt;/P&gt;&lt;P&gt;      s_bapicuins-obj_key  = s_item_in-material.&lt;/P&gt;&lt;P&gt;      s_bapicuins-quantity = s_schedule_in-req_qty.&lt;/P&gt;&lt;P&gt;      append s_bapicuins.&lt;/P&gt;&lt;P&gt;      variant_ind = 'X'.&lt;/P&gt;&lt;P&gt;      if ifile2-steak_ind = 'X'.&lt;/P&gt;&lt;P&gt;        s_bapicuval-config_id = s_bapicucfg-config_id.&lt;/P&gt;&lt;P&gt;        s_bapicuval-inst_id   = s_bapicuins-inst_id.&lt;/P&gt;&lt;P&gt;        read table izvariantmap with key code =&lt;/P&gt;&lt;P&gt;                                     s_item_in-sales_unit+0(1).&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          s_bapicuval-charc = izvariantmap-name.&lt;/P&gt;&lt;P&gt;          if s_item_in-sales_unit+2(1) &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;            concatenate s_item_in-sales_unit+1(1) '.'&lt;/P&gt;&lt;P&gt;                        s_item_in-sales_unit+2(1) ' INCH' into&lt;/P&gt;&lt;P&gt;                        s_bapicuval-value.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            concatenate s_item_in-sales_unit+1(1) ' INCH' into&lt;/P&gt;&lt;P&gt;                        s_bapicuval-value.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;          append s_bapicuval.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        read table izvariantmap with key code = 'Q'.&lt;/P&gt;&lt;P&gt;        s_bapicuval-charc = izvariantmap-name.&lt;/P&gt;&lt;P&gt;        s_bapicuval-value = ifile2-menge.&lt;/P&gt;&lt;P&gt;        append s_bapicuval.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if variant_ind = 'X' and not ( ifile2-char_code is initial ).&lt;/P&gt;&lt;P&gt;    s_bapicuval-config_id = s_bapicucfg-config_id.&lt;/P&gt;&lt;P&gt;    s_bapicuval-inst_id   = s_bapicuins-inst_id.&lt;/P&gt;&lt;P&gt;    read table izvariantmap with key code = ifile2-char_code.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      if izvariantmap-code = 'T'.&lt;/P&gt;&lt;P&gt;        concatenate ifile2-char_value ' INCH' into ifile2-char_value.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;      s_bapicuval-charc = izvariantmap-name.&lt;/P&gt;&lt;P&gt;      s_bapicuval-value = ifile2-char_value.&lt;/P&gt;&lt;P&gt;      append s_bapicuval.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  at end of serial_number.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create sales order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        ORDER_HEADER_IN               = s_header&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        SALESDOCUMENT                 = p_vbeln&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        RETURN                        = s_return&lt;/P&gt;&lt;P&gt;        ORDER_ITEMS_IN                = s_item_in&lt;/P&gt;&lt;P&gt;        ORDER_PARTNERS                = s_partner&lt;/P&gt;&lt;P&gt;        ORDER_SCHEDULES_IN            = s_schedule_in&lt;/P&gt;&lt;P&gt;        ORDER_CFGS_REF                = s_bapicucfg&lt;/P&gt;&lt;P&gt;        ORDER_CFGS_INST               = s_bapicuins&lt;/P&gt;&lt;P&gt;        ORDER_CFGS_VALUE              = s_bapicuval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if s_return-type = 'E'.&lt;/P&gt;&lt;P&gt;      write:/ 'Order not created for serial number',&lt;/P&gt;&lt;P&gt;            30 ifile2-serial_number,&lt;/P&gt;&lt;P&gt;            45 s_return-message.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      write:/ 'Order created for serial number', 30 ifile2-serial_number&lt;/P&gt;&lt;P&gt;              , 'is    ', p_vbeln.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    call function 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;  endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 13:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coping-scheduling-agreement/m-p/2334910#M513983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T13:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: coping scheduling  agreement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coping-scheduling-agreement/m-p/2334911#M513984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;look at the Function module IDOC_INPUT_SALESORDER_CREATEFR, In this one the fucntion module BAPI_SALESORDER_CREATEFROMDAT2  has been called, look at the FM to know the fields which are mandatory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abap.wikiprog.com/w/index.php?title=BAPI_SALESORDER_CREATEFROMDAT2&amp;amp;printable=yes" target="test_blank"&gt;http://abap.wikiprog.com/w/index.php?title=BAPI_SALESORDER_CREATEFROMDAT2&amp;amp;printable=yes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 13:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coping-scheduling-agreement/m-p/2334911#M513984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T13:44:12Z</dc:date>
    </item>
  </channel>
</rss>

