<?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: BAPI for MD12 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549926#M1074447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is a standard sap table... you cannot modify/ update it directly.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2008 06:50:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-29T06:50:05Z</dc:date>
    <item>
      <title>BAPI for MD12</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549922#M1074443</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 have to update some fields(Start,finish dates) and change status of AUFFX,STLFX in the Standard Table PLAF..for a particular planned order(PLNUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the BAPI I should be using through which I can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction Used - MD12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if  have to provide any further information..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 06:34:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549922#M1074443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T06:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for MD12</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549923#M1074444</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;As u know the fields and the table u need to update, U can write an ABAP program and update/modify that particular table instead of doing the whole BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just put all the values into an flat file,bring it into SAP using GUI_UPload or ALSM_EXCEL_INTERNAL_TABLE(if excel) and then take it into internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop the internal table and then update/modify the master table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 06:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549923#M1074444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T06:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for MD12</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549924#M1074445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_PLANNEDORDER_CHANGE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 06:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549924#M1074445</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2008-09-29T06:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for MD12</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549925#M1074446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you explore BAPI transaction?&lt;/P&gt;&lt;P&gt;BAPI_PLANNEDORDER_CHANGE??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 06:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549925#M1074446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T06:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for MD12</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549926#M1074447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is a standard sap table... you cannot modify/ update it directly.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 06:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549926#M1074447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T06:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for MD12</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549927#M1074448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya.. in the mean while I'm exploring all the bapis related to planned order... I found it.... thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 06:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549927#M1074448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T06:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for MD12</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549928#M1074449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya.. in the mean while I'm exploring all the bapis related to planned order... I found it.... thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 06:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549928#M1074449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T06:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for MD12</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549929#M1074450</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;using the foll statement in ABAP program, we can update as it is a Transparent table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pasting example code here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables:skat.

types: begin of acc,
       mandt type skat-mandt,
       ktopl type skat-ktopl,
       saknr type skat-saknr,
       txt20 type skat-txt20,
       txt50 type skat-txt50,
       mcod1 type skat-mcod1,
       end of acc.

data: glmaster type skat,
      saknr type ska1-saknr,
      bilkt type ska1-bilkt.


data: acc1 type standard table of acc,
      acc2 type acc.

data: conv type acc.

data: xl_acc1 type alsmex_tabline occurs 1 with header line.



CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
  EXPORTING
    FILENAME                      = 'C:\Documents and Settings\pri\Desktop\gltext1.xls'
    I_BEGIN_COL                   = 1
    I_BEGIN_ROW                   = 3
    I_END_COL                     = 5
    I_END_ROW                     = 182
  TABLES
    INTERN                        = xl_acc1.
* EXCEPTIONS
*   INCONSISTENT_PARAMETERS       = 1
*   UPLOAD_OLE                    = 2
*   OTHERS                        = 3
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

 loop at xl_acc1.

    case xl_acc1-col.
      when '1'.
        acc2-ktopl = xl_acc1-value.
      when '2'.
        acc2-saknr = xl_acc1-value.
      when '3'.
        acc2-txt20 = xl_acc1-value.
      when '4'.
        acc2-txt50 = xl_acc1-value.
      when '5'.
        acc2-mcod1 = xl_acc1-value.
        append acc2 to acc1.
    endcase.
  endloop.







*delete from skat.


loop at acc1 into acc2.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT         = acc2-saknr
 IMPORTING
   OUTPUT        = saknr.
          .

 move saknr to acc2-saknr.
 move sy-mandt to acc2-mandt.
          .
 move-corresponding acc2 to glmaster.

.
update skat from glmaster. " here the master table is getting updated.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vishwa sri hari on Sep 29, 2008 8:58 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2008 06:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-md12/m-p/4549929#M1074450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-29T06:58:27Z</dc:date>
    </item>
  </channel>
</rss>

