<?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 Problem with  BAPI_PROCORDCONF_CREATE_TT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-procordconf-create-tt/m-p/5167428#M1196664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus, &lt;/P&gt;&lt;P&gt;I am trying to change the indicator "Final delivery" in a process order .&lt;/P&gt;&lt;P&gt;I am trying to do it with a BAPI . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't do it ...&lt;/P&gt;&lt;P&gt;And the funny is that the system say that the Order was saved  !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look my code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  YDP_METAL_BOOK_CHECK_V13
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  YDP_METAL_BOOK_CHECK_V10.

TABLES : AFKO , AFPO .

DATA BEGIN OF AAA OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_HEADER1.
DATA END OF AAA.

DATA BEGIN OF BBB OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_ITEM.
DATA END OF BBB.

DATA BEGIN OF CCC OCCURS 0.
        INCLUDE STRUCTURE BAPI_PI_ORDER_OBJECTS.
DATA END OF CCC.

DATA BEGIN OF DDD OCCURS 0.
        INCLUDE STRUCTURE BAPI2017_GM_ITEM_CREATE.
DATA END OF DDD.

DATA BEGIN OF MMM OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_PHASE.
DATA END OF MMM.

DATA BEGIN OF NNN OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_TRIGGER_POINT.
DATA END OF NNN.


DATA BEGIN OF LOCK OCCURS 0.
        INCLUDE STRUCTURE BAPI_CORU_PARAM.
DATA END OF LOCK.


DATA BEGIN OF EEE OCCURS 0.
        INCLUDE STRUCTURE BAPI_PI_TIMETICKET1.
DATA END OF EEE.

DATA BEGIN OF DETAILS OCCURS 0.
        INCLUDE STRUCTURE BAPI_CORU_RETURN.
DATA END OF DETAILS.

DATA BEGIN OF LLL OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_STATUS.
DATA END OF LLL.

START-OF-SELECTION.

CLEAR AFKO.
SELECT SINGLE * FROM AFKO WHERE AUFNR = '000039085004'.

IF SY-SUBRC = 0.


  CCC-HEADER = 'X'.
  CCC-POSITIONS = 'X'.
  APPEND CCC.

CALL FUNCTION 'BAPI_PROCORD_GET_DETAIL'
  EXPORTING
    NUMBER                 = AFKO-AUFNR
   COLLECTIVE_ORDER       = 'X'
    ORDER_OBJECTS          = CCC
* IMPORTING
*   RETURN                 =
 TABLES
   HEADER                 = AAA
   POSITION               = BBB
*   SEQUENCE               =
   PHASE                  = MMM
   TRIGGER_POINT          = NNN
*   COMPONENT              =
*   PROD_REL_TOOL          =
    .

EEE-ORDERID     = AFKO-AUFNR.
EEE-PHASE       = '0500'.
DDD-NO_MORE_GR = 'X'.

APPEND EEE.
APPEND DDD.


CALL FUNCTION 'BAPI_PROCORDCONF_CREATE_TT'
 EXPORTING
   POST_WRONG_ENTRIES       = '0' "LOCK              " '0'
*   TESTRUN                  =
* IMPORTING
*   RETURN                   =
  TABLES
    TIMETICKETS              = EEE
    GOODSMOVEMENTS           = DDD
*   LINK_CONF_GOODSMOV       =
   DETAIL_RETURN            = DETAILS          .

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
*   WAIT          =
* IMPORTING
*   RETURN        =
          .
ENDIF.

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2009 11:30:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-26T11:30:32Z</dc:date>
    <item>
      <title>Problem with  BAPI_PROCORDCONF_CREATE_TT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-procordconf-create-tt/m-p/5167428#M1196664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus, &lt;/P&gt;&lt;P&gt;I am trying to change the indicator "Final delivery" in a process order .&lt;/P&gt;&lt;P&gt;I am trying to do it with a BAPI . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't do it ...&lt;/P&gt;&lt;P&gt;And the funny is that the system say that the Order was saved  !!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look my code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;**&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  YDP_METAL_BOOK_CHECK_V13
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  YDP_METAL_BOOK_CHECK_V10.

TABLES : AFKO , AFPO .

DATA BEGIN OF AAA OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_HEADER1.
DATA END OF AAA.

DATA BEGIN OF BBB OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_ITEM.
DATA END OF BBB.

DATA BEGIN OF CCC OCCURS 0.
        INCLUDE STRUCTURE BAPI_PI_ORDER_OBJECTS.
DATA END OF CCC.

DATA BEGIN OF DDD OCCURS 0.
        INCLUDE STRUCTURE BAPI2017_GM_ITEM_CREATE.
DATA END OF DDD.

DATA BEGIN OF MMM OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_PHASE.
DATA END OF MMM.

DATA BEGIN OF NNN OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_TRIGGER_POINT.
DATA END OF NNN.


DATA BEGIN OF LOCK OCCURS 0.
        INCLUDE STRUCTURE BAPI_CORU_PARAM.
DATA END OF LOCK.


DATA BEGIN OF EEE OCCURS 0.
        INCLUDE STRUCTURE BAPI_PI_TIMETICKET1.
DATA END OF EEE.

DATA BEGIN OF DETAILS OCCURS 0.
        INCLUDE STRUCTURE BAPI_CORU_RETURN.
DATA END OF DETAILS.

DATA BEGIN OF LLL OCCURS 0.
        INCLUDE STRUCTURE BAPI_ORDER_STATUS.
DATA END OF LLL.

START-OF-SELECTION.

CLEAR AFKO.
SELECT SINGLE * FROM AFKO WHERE AUFNR = '000039085004'.

IF SY-SUBRC = 0.


  CCC-HEADER = 'X'.
  CCC-POSITIONS = 'X'.
  APPEND CCC.

CALL FUNCTION 'BAPI_PROCORD_GET_DETAIL'
  EXPORTING
    NUMBER                 = AFKO-AUFNR
   COLLECTIVE_ORDER       = 'X'
    ORDER_OBJECTS          = CCC
* IMPORTING
*   RETURN                 =
 TABLES
   HEADER                 = AAA
   POSITION               = BBB
*   SEQUENCE               =
   PHASE                  = MMM
   TRIGGER_POINT          = NNN
*   COMPONENT              =
*   PROD_REL_TOOL          =
    .

EEE-ORDERID     = AFKO-AUFNR.
EEE-PHASE       = '0500'.
DDD-NO_MORE_GR = 'X'.

APPEND EEE.
APPEND DDD.


CALL FUNCTION 'BAPI_PROCORDCONF_CREATE_TT'
 EXPORTING
   POST_WRONG_ENTRIES       = '0' "LOCK              " '0'
*   TESTRUN                  =
* IMPORTING
*   RETURN                   =
  TABLES
    TIMETICKETS              = EEE
    GOODSMOVEMENTS           = DDD
*   LINK_CONF_GOODSMOV       =
   DETAIL_RETURN            = DETAILS          .

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
*   WAIT          =
* IMPORTING
*   RETURN        =
          .
ENDIF.

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 11:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-procordconf-create-tt/m-p/5167428#M1196664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T11:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  BAPI_PROCORDCONF_CREATE_TT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-procordconf-create-tt/m-p/5167429#M1196665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried COMMIT WORK  directly after calling up this BAPI ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 11:39:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-bapi-procordconf-create-tt/m-p/5167429#M1196665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T11:39:52Z</dc:date>
    </item>
  </channel>
</rss>

