Order confirmation through BAPI

Dear Gurus,
I am having a scenarion for heat treatment proces. In a single HT cycle there is a possibility of clubbing the multiple orders. For example I am having 2 orders... one for material A and another for material B. In these two orders operation 30 (in order A) and operation 40 (in order B) are HT operations. I am creating a group order. In this group order I will select the original order number and operation number (i.e. A-30 and B-40). And in this Z transaction I will mention the total activity consumption... this activity consumption will be segregated based on the weight of each order.
After segregation of activities... I want to trigger the individual operation confirmation. This I am planning with the help of BAPI. I found BAP "". But during the testing (by giving order number, operation number and activity values)... I am receiving message saying that confirmation of order XXXXX saved. But I didn't find this confirmation data in Table. Please let me know ... what could be the reason.
If you need any further clarification, please let me know.
Regards,
Surya.

Hi Surya,
Try the BAPI not from Se37, but from a test program. Also call the BAPI_TRANSACTION_COMMIT so that changes are saved permamnatly.

Similar Messages

  • Production order confirmation through BAPI

    hi all,
    i have an issue regarding the order confirmation 'BAPI_PRODORDCONF_CREATE_TT'. the order is getting confirmed but the confirmed yield is not geeting updated . ihave passed the order number , operation , Activity Currently to be Confirmed, and unit of measure. can anyone please suggest on this . urgent. do i need to pass the quantity if yes where and which parameter and which quantity to pass to the function module.

    Hi , I have the same problem. When I am running BAPI_PRODORDCONF_CREATE_TT , after successful execution it gives msg that ORDER Confirmation saved. But when i check that in CO14, its not showing the update.

  • Sales Order Confirmation through Email

    Dear Friends,
    Can i ask you to give me a quick idea on what need to be done to establish the functionality to send the order confirmation through emails.
    Thanks in advance.
    Ravi

    Once you made sure that the output type definition is all set with all relevant data and ABAP work, go to the condition record of the same output. Maintain the mediums as 5 -- Extrenal Send and Date / Time as 4- send immediately when saving the order. Then go to the details of the record and maintain the relevant communication strategy. Save the record. This should trigger the mail automatically when you save the order.
    If you also want to print with the same output type, then you need to go back to order VA02 , repeat output and change the medium to 1.
    If you want to automatically print and also mail on single save / then you need to tweak the output program to trigger print and mail both at the same instance. This is possible by the output program. Then you need to keep the medium as 1.
    Hope this helps.
    Sai

  • Trying to create a Sales Order Confirmation through IDoc

    Hi,
    I am trying to create Sales Order Confirmation through ALE with message control.
    My recieving system is XI server.
    Can u please send me the steps to what to be done to trigger IDoc automatically.
    The condition types and access sequence created is for Output type customer but i am sending it to XI Server.
    please help me.
    Thank you in advance,
    Gangolu.

    Hi Gangolu,
    Have a look at url. Hope this provides some inputs.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/73527b2c-0501-0010-5398-c4ac372c9692
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
    Thanks
    Lakshman

  • Transfer the Pur Order Info through BAPI's between SAP R/3 Systems Using XI

    How to Create a Purchase Order for the Vendor and transfer this data through BAPI's between SAP R/3 Systems Using "Exchange Infrastructure(XI)".
    Please kindly let me know the procedure for creating BAPI's and how to transfer this information between SAP R/3 systems. Please kindly mention the NAVIGATION for this scenario.

    Hi Revathi,
    If you want to do an IDOC to IDOC scenario, then the Points to be noted are:
    1. You don’t need a DT, MT or a message interface for the IDOC as it itself acts as the Message Interface.
    2. You import the IDOC and use the same in your mapping.
    3. You do not need a sender IDOC adapter, and no sender agreement, but a receiver IDOC adapter and a receiver agreement is needed.
    IDOC -> File scenario ref:
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    File -> IDOC ->
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    (It concentrates on XSLT mapping but also gives an idea about the configuration part. Do go thru that, it might help you.)
    Apart from this if you need any info on how to configure your ALE, partnet profile,etc  drop me a mail, I have excellent tutors that can help you in the same.
    Regards,
    Bhavesh

  • Problem with creating Process order confirmation using BAPI

    Hello,
    While creating Process Order confirmation using BAPI_PROCORDCONF_CREATE_TT, material document is getting created. But a line item is inserted in the table AFRU without material document number. When it is created manually using the transaction COR6, the table is getting updated with material doc in the line item. Can anyone let me know what other attributes to be passed in order the update the same?
    Thanks in Advance.
    Regards, Senthil G.

    Hello , I am working with the same Bapi, can you please send me the code to fill the parameters, if I find the same error like you, I will send you the solution if I correct that.
    Thanks for your help.
    [email protected]
    Guatemala, Cempro ADATSA

  • Sales order uploading through bapi

    hi
    i want to upload sales order to bapi pls give the code and i also error handling through bapi
    regards
    A.K

    Hi Awadhesh,
    pls look at this link you will get a clear idea and the code.
    http://abaplovers.blogspot.com/2008/02/bapi-sales-order-create-code.html
    Happy to help you.
    Regards,
    Viveks

  • Reversal of Production Order Confirmation through IDOCS

    Hello all,
                  The time for each operation in a  production order is logged in KabaBEnzing tool called Autotime. This is sent to SAP through IDOCS and the order confirmation is created. There is a scenario where the supervisor could have entered the wrong time against an operation. Is it possible to reverse the confirmation through IDOCs. If yes, please let me know what should be the approach? Also, I heard that SAP does not accept negative time to do the reversal. How true is this?
    All helpful answers will be rewarded.
    Thanks,
    Kalyan

    Hello,
    I saw your message and we are doing the same thing.  Did you find any answers to your questions.   We are using Kaba for our shop system and now we would like to sent negative numbers back to sap because of supervisor adjustments.  I have not found any way to set Sap to allow it.  What conclusions have you came up with the situation.
    Thanks again,
    Jeff

  • Entry in CO1P when confirmed through BAPI

    Hi All,
    We have an interface where we are doing the confirmation of the production orders. We are using the BAPI  'BAPI_PRODORDCONF_CREATE_HDR' to confirm the production orders. And our configuration parameters have been maintained such that the automatic goods receipt of the production order happens on confirmation.
    However the problem we are facing is, on confirmation of the production order - most of the times an entry is created in transaction CO1P with the message as 'Automatic Goods Receipt'.
    Could any one please let us know why an entry is created in CO1P at the time of confirmation?
    When we do the confirmation of the same production orders online using CO15, no entry is created in CO1P.
    We are not able to figure out why an entry is created in CO1P only at the time of running the interface i.e. confirmation from BAPI.
    Please let us know your inputs. Your help is much appreciated.
    Thanks,
    Manohar Dubbaka.

    Hi Andreas,
    As mentioned in SAP consulting note 20847
    Since I had the problem after confirmation and before TECO, I called the report program in CORUPROC whenever I have an entry in CO1P. I check if an entry is existing in CO1P by looking up in the table AFFW with the production order number.
    If an entry is found ONLY then I am calling the report program CORUPROC. After this report I am doing the TECO of the production order.
    This appears to have solved the program for now! I am updating the status of the thread to closed,
    Thanks for your suggestion.
    Thanks,
    Manohar Dubbaka.

  • Sales order change through bapi

    iam uploading va02 changes through bapi..but its not changing the sales order
    details in bapi_change function module item number its taking as zero. plz can any one
    say where iam going wrong.this is my code
    *______BAPI STRUCTURES
    data : bapi_header type BAPISDH1 occurs 0 with header line,
           bapi_item type BAPISDITM occurs 0 with header line,
           bapi_header_x like BAPISDH1X occurs 0 with header line,
           bapi_item_x type BAPISDITMX occurs 0 with header line,
         it_return type BAPIRET2 occurs 0 with header line.
    data: v_vbeln like BAPIVBELN-VBELN,
          v_bstkd like bapisdh1-purch_no_c,
          v_zterm like bapisdh1-pmnttrms,
          v_inco1 like bapisdh1-incoterms1,
          v_inco2 like bapisdh1-incoterms2,
          v_arktx like  bapisditm-short_text,
          v_koe1n like  bapisditm-currency.
    *_____ Internal to hold the records in the text file
    DATA : BEGIN OF it_header OCCURS 100,
      VBELN(10) ,
      BSTKD(35) ,
      ZTERM(4) ,
      INCO1(3) ,
      INCO2(28) ,
      POSNR(6) ,
      matnr(18) ,
      ARKTX(40) ,
    END OF it_header.
    *_____ Internal table to hold excel file data
    DATA : it_intern TYPE alsmex_tabline OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK scr1 WITH FRAME TITLE text-111.
    PARAMETER : p_file TYPE rlgrap-filename OBLIGATORY .
    *paRAMETERS : p_header TYPE i DEFAULT 0.
    parameters :  p_begcol TYPE i DEFAULT 1 NO-DISPLAY,
                 p_begrow TYPE i DEFAULT 1 NO-DISPLAY,
                 p_endcol TYPE i DEFAULT 100 NO-DISPLAY,
                 p_endrow TYPE i DEFAULT 32000 NO-DISPLAY.
    SELECTION-SCREEN END OF BLOCK scr1.
    ___________START-OF-SELECTION________________
    START-OF-SELECTION.
    PERFORM convert_xls_itab. "to convert excel data into internal table
    ___________END-OF-SELECTION________________
    END-OF-SELECTION.
    *&      Form  convert_xls_itab
          text
    -->  p1        text
    <--  p2        text
    FORM convert_xls_itab .
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
       filename    = p_file
          i_begin_col = p_begcol
          i_begin_row = p_begrow
          i_end_col   = p_endcol
          i_end_row   = p_endrow
        TABLES
          intern      = it_intern.
    EXCEPTIONS
      INCONSISTENT_PARAMETERS       = 1
      UPLOAD_OLE                    = 2
      OTHERS                        = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    PERFORM move_data. " to move the data into an internal table
    ENDFORM.                    " convert_xls_itab
    ___________END-OF-SELECTION________________
    END-OF-SELECTION.
    PERFORM upload_so.   "to upload salesorder changes
    *&      Form  upload_so
          text
    -->  p1        text
    <--  p2        text
    *&      Form  move_data
          text
    -->  p1        text
    <--  p2        text
    FORM move_data .
      DATA : lv_index TYPE i.
      FIELD-SYMBOLS <fs>.
      SORT it_intern BY row col.  "Sorting Internal Table
      CLEAR it_intern.
      LOOP AT it_intern.
        MOVE it_intern-col TO lv_index.
        ASSIGN COMPONENT lv_index OF STRUCTURE it_header TO <fs>. " assigning each record to internal table row
        MOVE it_intern-value TO <fs>.
        AT END OF row.
          APPEND it_header.
          CLEAR it_header.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    " MOVE_DATA
                       " move_data
    *&      Form  upload_so
          text
    -->  p1        text
    <--  p2        text
    FORM upload_so .
    LOOP AT it_header.
    Header
       v_vbeln            = it_header-VBELN.
       bapi_header-purch_no_c  = it_header-BSTKD.
       bapi_header-pmnttrms    = it_header-ZTERM.
       bapi_header-incoterms1  = it_header-INCO1.
       bapi_header-incoterms2  = it_header-INCO2.
    APPEND BAPI_header.
        bapi_header_x-updateflag = 'U'.
       bapi_header_x-purch_no_c  = 'X'.
       bapi_header_x-pmnttrms    = 'X'.
       bapi_header_x-incoterms1  = 'X'.
       bapi_header_x-incoterms2  = 'X'.
    APPEND BAPI_header_x.
    item
       REFRESH BAPI_item.
        bapi_item-ITM_NUMBER = it_header-POSNR.
        bapi_item-material =  it_header-matnr.
        bapi_item-short_text = it_header-arktx.
       bapi_item-currency   = it_item-koein.
        APPEND BAPI_item.
    bapi_item_x-updateflag = 'U'.
        bapi_item_x-ITM_NUMBER = it_header-POSNR.
        bapi_item_x-MATERIAL = 'X'.
        bapi_item_x-short_text = 'X'.
       bapi_item_x-currency   = 'X'.
        APPEND  bapi_item_x.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            INPUT         = V_VBELN
         IMPORTING
           OUTPUT        = V_VBELN.
    BAPI to change sales order
                       CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
                         EXPORTING
                           SALESDOCUMENT               = v_vbeln
                        ORDER_HEADER_IN             = bapi_header
                           ORDER_HEADER_INX            = bapi_header_x
                         SIMULATION                  =
                         BEHAVE_WHEN_ERROR           = ' '
                         INT_NUMBER_ASSIGNMENT       = ' '
                         LOGIC_SWITCH                =
                         NO_STATUS_BUF_INIT          = ' '
                         TABLES
                           RETURN                      = it_return
                        ORDER_ITEM_IN               = bapi_item
                        ORDER_ITEM_INX              = bapi_item_x
                         PARTNERS                    =
                         PARTNERCHANGES              =
                         PARTNERADDRESSES            =
                         ORDER_CFGS_REF              =
                         ORDER_CFGS_INST             =
                         ORDER_CFGS_PART_OF          =
                         ORDER_CFGS_VALUE            =
                         ORDER_CFGS_BLOB             =
                         ORDER_CFGS_VK               =
                         ORDER_CFGS_REFINST          =
                         SCHEDULE_LINES              =
                         SCHEDULE_LINESX             =
                         ORDER_TEXT                  =
                         ORDER_KEYS                  =
                         CONDITIONS_IN               =
                         CONDITIONS_INX              =
                         EXTENSIONIN                 =
    COMMIT WORK.
    ENDLOOP.
      IF IT_return-type = 'E'.
          WRITE: / 'Error :', IT_return-message, / 'for VBELN:',it_HEADER-VBELN.
        ELSEIF IT_return-type = 'S'.
          WRITE: / 'Successfully CHANGED', it_HEADER-VBELN.
        ENDIF.
    ENDFORM.                    " upload_so
    thanks

    hi
    You can use ORDER_ITEMS_IN. For further details use the documentation of the function module.This must help you in your requirement.
    regards
    Aakash Banga

  • Production order confirmation with BAPI

    Dear PP friends,
    I want to create a program to confirm production orders in mass at header level like CO15. To do it I am trying to use BAPI_PRODORDCONF_CREATE_HDR and it works fine for planned backflush.
    However, I am not able to change data of goods movement (quantity, warehouse and batch). Is it possible?
    What is the function of GOODSMOVEMENTS table?
    I studied the following thread but I could not solve it.
    Production Order Confirmation BAPI
    Does anyone have suggestions?
    Thanks in advance.
    Marcos

    Hi Caetano,
    Thanks for your reply.
    I tested BAPI_PRODORDCONF_GET_HDR_PROP and it proposes goods movements according with open quantity of the production order. In this case, would I have to adjust all movements with actual quantity?
    Is possible to propose goods movements according with confirmed quantity?
    Regards,
    Marcos

  • Sales Order confirmation through standard IDoc in Background

    Hi all,
    I want to send Order confirmation throough standard or existing IDoc.
    Can  you please help me the steps to configure the IDoc
    and also the standard program to fill the IDoc with the data and send as background job.
    It is also the case for
    Invoice
    and Shipping
    Can you please send me the steps to  configure and standard program to fill the IDoc with data.
    Hope you would respond me ASAP.
    Thanks and Regards,
    Shalem.

    Hi,
    After the sales order has been created, an ORDRSP IDoc is automatically created using message control.  This IDoc is sent from the vendor system to the retail system, which means that the outbound IDoc can usually be found in the vendor system and the inbound IDoc in the retail system.
    SAP menu -> Tools -> Business Communication -> IDoc Basis -> WE02 –> Display IDoc.
    Before this you need to complete NACE configuration Part.
    If you want to send the IDocs automatically while creating sales order, you can configure it using message control. The process code will be SD10, which is for sales order confirmation (called as EDI 855).
    Use NACE transaction to create output/message type with program as RSNASTED and form routine as EDI_PROCESSING and configure the condition record for your partner (profile). Also configure the same in your partner profile.
    <i>Hope This Info Helps YOU.</i>
    Regards,
    Raghav

  • Partial Sales Order Confirmation from BAPI.

    Hi,
    I have B2C process to create order from internet. Right now we are able to create order but problem is if it confirms parital today and partialy in future then it confirm all in future.
    e.g. - I have to create order for 10 quantity.
    - from VA01 if i try to create
                        it will confirm for 4 for today(as 4 quantity available) and 6 for future(say 3/11/10)
    but for the same case in BAPI
    - it will create order for 10 as future confirm (3/11/10)
    Is there any flag i need to set in BAPI.
    I use BAPI - BAPI_SALESORDER_CREATEFROMDAT2

    I already seen that but I think in that we have to use : BAPI_MATERIAL_AVAILABILITY  and it will add time for the creation of order.
    Please let me know is there any other option.

  • Process order confirmation through PI sheet -reg

    Hi,
    Please tell how to confirm the operation/order through PI sheet.
    I have created the process order with PH_CON as process instruction catagory. after I sent the message thr. CO53 and in CO58 entered the actvity timining and then saved.
    But i am not getting any status in the order,
    Please tell me is there any mistake inthe process.
    Regards
    Karthik

    Hi,
    Process Massage will generate only after Completing the PI sheet.So after maintaining the PI sheet you have to press Complete button then only system will generate Process Massage regarding completion of PI sheet.
    But if you leave the PI sheet only with Save then it means still there are some entries are left or may be change.So in this case system will not generate process massage.
    Now first complete the PI sheet then check in CO54 with correct date , time and plant selection.Send it from here and then check in process order.
    Regards,
    Dhaval

  • Process order confirmation through PI sheet without Batch no.

    Hi Experts,
    Can any body tell me how can we confirm the process order through PI sheet without batch no.? I know though COEBR we can confirm the order through PI sheet but it requires batch no. & We don't have batch managenent implemented.
    Youe suggestions are valuable for me.
    Regards,
    Shivkumar Dachawar

    To make GR for the order for materials without PI sheet.
    1. Process instruction category PROD_2 - which does not require batch number. Tcode O12C
    2. Assign this Process instruction category to your Control recipe destination for your plant - SPRO- > PPPI -> Process management  -> Control recipe / PI sheets -> Contrl. rec. destination -> Define and setup
    If you need more information let me know.

Maybe you are looking for

  • Editing with Photoshop Elements 4.0

    I'm sure the problem and solution are simple, but I'm missing something. Here goes. I'm using iPhoto 6.0.2. Just installed and started using Adobe Photoshop Elements 4.0. Have been editing about 1,100 photos from a recent trip to Africa, which were i

  • Can't set the time format of lockscreen BACK to 24H format

    Having switched from 24 to AM/PM 12 hour format to see what it looked like, upon switching it back to 24 hour it's fine on the Home screen but remains stubbornly 12 hours on the lockscreen. It's an iPhone 4 running IOS 5.0 Thanks

  • ATV2 Locking iTunes EVERY TIME (5 Units/3 Macs)

    Ok this is now just become stupid. I have 5 apple tvs, 3 are the ATV2s and 2 are ATV1. If I try watch ANYTHING from an ATV2 my iTunes immediately stops responding. I have home share on 3 of my macs and tried all three, same result on each mac. It doe

  • Trouble with passing parameters to a dynamic theme

    Hello experts, I have been wrestling with this for days now, and can't seem to understand what is going on here. I don't think it's difficult to figure out and I'm sure I'm not the only one who has come across this, I just feel like I am missing some

  • Loading one JComponet Window then closing and Loading a different Window

    Hello and how is everyone. I believe there is two ways I cam make this Java desktop application work, but I am not sure which is the best or doable. I have right now a Component tab window that pops up ask a user to select an option. Then they hit a