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

Similar Messages

  • Create process order confirmation

    Hello,
    I use the Bapi 'BAPI_PROCORDCONF_CREATE_TT' to create a confirmation in our Z program to replace 'COR6N'.
    The only problem I meet is that it makes a material document for the good movements but don't write it in the table AFRU (field WABLNR).
    Do I miss something in the BAPI??
    I run the BAPI like that:
      CALL FUNCTION 'BAPI_PROCORDCONF_CREATE_TT'
        IMPORTING
          return                   = lwa_return
        TABLES
          timetickets              = gt_timetickets
          goodsmovements           = gt_goodsmovements
          detail_return            = lt_detail_return
    The tables gt_timetickets & gt_goodsmovements are filled with relevant values.
    Could anyone help me to know what make the doc no. to be written in AFRU?!!!
    Thanks in advance,
    Fariba

    Hi Fariba,
    I am facing the same kind of issue that you faced long back. If you have resolved this issue, can you help me by replying back to the thread Problem with creating Process order confirmation using BAPI
    Thanks in Advance.
    Regards, Senthil G.

  • Problem on creating process order

    Dear Team,
    I have a problem on creating process order thru COR1 where the basic start date only accept and follows current date. Basic finished date, no problem. Previously, i can set the basic start date using previous date / date in the past (in the same current month). I'm using "Only capacity requirements" for scheduling type.
    is there anywhere in the SAP config that i can check?
    and why this problem occured?
    Thanks

    Dear Tallha,
    Here is screenshoot of my process order. the basic finished date is automatically changed to current date. (date entered 1/5/2014)
    Thanks

  • Web Service for "Creating Sales Order" by using BAPI

    Hello All,
    I am trying to create a WS for "Creating Sales Order". The corresponding BAPI that I am using for this purpose is BAPI_SALESORDER_CREATEFROMDAT1. I am able to create the Web Service and run the WSDL on WS Navigator.
    But there is a problem whil executing the Web Service. In the interface of WS, we can only enter item level details of "Order Partner". So when I enter the details and click on Execute, it returns me an error message "Please enter Ship to Party and Sold to Party". I have already given these details.
    Does any one have any idea of what is going wrong?
    Regards,
    Abhishek

    As you suggested i have passed the suggested parameters in item level..But this time i was not ablet to create the SO also..earlier i am able to creat SO but not line item, But now ia m not able to creat salesdocuement also.
    Return talbe filled with belwo messages.
    S V4                   233 SALES_HEADER_IN has been processed successfully   
    E V1                   320 No item category available (Table T184 ZKB  TEXT )
    E V4                   248 Error in SALES_ITEM_IN 000000                     
    W V1                   555 The sales document is not yet complete: Edit data 
    E V4                   219 Sales document  was not changed

  • Problem while creating credit memo request using BAPI

    HI,
    I am trying to create credit memo request using the BAPI_SALESDOCU_CREATEFROMDATA1..
    I am getting the error as " No customer master data is available for the customer". But the customer exists in the KNA1 table. What is the mistake i hv done.. this s my code..
    REPORT  ZSV_CREDITMEMO_TEST1.
    Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead1.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapisditem  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                             WITH HEADER LINE.
    DATA: lt_schedules_ink    TYPE STANDARD TABLE OF bapisdhead1
                             WITH HEADER LINE.
    START-OF-SELECTION.
    Header data
    Sales document type
      header-doc_type = 'G2'. 
      headerx-doc_type = 'X'.
    Sales organization
      header-sales_org = '0001'.
      headerx-sales_org = 'X'.
    Distribution channel
      header-distr_chan  = ''.
      headerx-distr_chan = 'X'.
    Division
      header-division = ''.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    *Complete delivery
        header-COMPL_DLV = ''.
        header-COMPL_DLV = 'X'.
    Partner data
    Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = '0000C10130'.
      APPEND partner.
    Ship to
      partner-partn_role = 'WE'.
      partner-partn_numb = ''.
      APPEND partner.
    ITEM DATA
      itemx-updateflag = 'I'.
    Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    Material
      item-material = 'C20011'.
      itemx-material = 'X'.
    Plant
      item-plant    = ''.
      itemx-plant   = 'X'.
    Quantity
      item-target_qty = '10000'. 
      itemx-target_qty = 'X'.
    item category
      itemx-ITEM_CATEG = 'X'.
      APPEND item.
      APPEND itemx.
      Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = '10000'.
      APPEND lt_schedules_in.
      Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
    Call the BAPI to create the sales order.
      CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
           EXPORTING
                sales_header_in     = header
                sales_header_inx    = headerx
           IMPORTING
                salesdocument_ex    = v_vbeln
           TABLES
                return              = return
                sales_items_in      = item
                sales_items_inx     = itemx
                sales_schedules_in  = lt_schedules_in
                sales_schedules_inx = lt_schedules_inx
                sales_partners      = partner.
    Check the return table.
      LOOP AT return WHERE type = 'E' OR type = 'A'.
        EXIT.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE: / 'Error in creating document'.
      ELSE.
    Commit the work.
        COMMIT WORK AND WAIT.
        WRITE: / 'Document ', v_vbeln, ' created'.
      ENDIF.
    can anyone tell what the error is.?

    Hi
    please look at code below code this succefully creating credit memo may some help to you
    header-doc_type = 'ZS4'.
        PERFORM get_plant.
        headerx-doc_type    = 'X'.
        header-sales_org    = wa_temp1-vkorg.
        headerx-sales_org   = 'X'.
        header-purch_no     = wa_temp1-bstnk.
        header-distr_chan   = wa_temp1-vtweg.
        headerx-distr_chan  = 'X'.
        header-division     = wa_temp1-spart.
        header-purch_no_s   = wa_temp1-bstnk.
        headerx-division    = 'X'.
        wa_partner-partn_role = 'AG'.
        wa_partner-partn_numb = wa_temp1-kunnr.
        APPEND wa_partner TO it_partner.
        wa_partner-partn_role = 'WE'.
        wa_partner-partn_numb = wa_temp1-kunnr.
        APPEND wa_partner TO it_partner.
        CLEAR: wa_partner.
        LOOP AT lt_temp2 INTO wa_temp2 WHERE kunnr = wa_temp1-kunnr.
          "AND matnr = wa_temp1-matnr.
    *wa_item-itm_number = wa_temp2-posnr .
          wa_item-material   = wa_temp2-matnr.
          wa_item-plant      = wa_temp2-werks.
          wa_item-req_qty    = wa_temp2-fkimg * 1000.
          wa_item-target_qty = wa_temp2-fkimg * 1000.
          APPEND wa_item TO it_item.
        ENDLOOP.
        CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
          EXPORTING
            order_header_in       = header
    *   WITHOUT_COMMIT            = ' '
    *   CONVERT_PARVW_AUART       = ' '
         IMPORTING
           salesdocument          = v_vbeln
    *   SOLD_TO_PARTY             =
    *   SHIP_TO_PARTY             =
    *   BILLING_PARTY             =
           return                 = return
          TABLES
           order_items_in         = it_item
           order_partners         = it_partner.
        IF v_vbeln <> space.
          wa_vbeln-vbeln = v_vbeln.
          APPEND wa_vbeln TO lt_vbeln.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
            EXPORTING
              wait = 'X'.
          HIDE wa_vbeln-vbeln.
          CLEAR: wa_partner,header,v_vbeln, wa_temp2.
          REFRESH: it_partner,it_item.
        ELSE.
    *    LOOP AT return .
          it_error-srno = idx.
          it_error-err_msg = return-message.
          APPEND it_error.
    *    ENDLOOP.
        ENDIF.
        idx = idx + 1.
      ENDLOOP.
    Regards

  • Creating sale order by using BAPI

    Hi,
    My requirement is to create a inquiry(VA11),  By using the Inquiry no as a input in report, i should create a salesorder using BAPI in which the datas should be flowed from inquiry to sale order. i did almost everything except the Pricing Condition.
        I am fetching the pricing condition values from table KONV-KSCHL and passing the value via BAPI_SALESORDER_CREATEFROMDAT2 it creates saleorder. In the created salesorder, there are two  same pricing conditions  but different rate 1.) the price of the MATNR which is maintained  2.) the changed MATNR price in inquiry level,
    i need the value which is changed in inquiry level that is 2nd value.
    can anyone help me in this...

    REPORT  ZSALESORDER.
    << Cut and paste without attribution from
    create sales order using BAPI
    removed >>
    Edited by: Rob Burbank on Feb 24, 2009 10:43 AM

  • Problem while creating serivce call ..using bapi

    Hi
    I am trying to create a service call using a BAPI(BAPI_FLIGHT_GETLIST) as given in the example...
    while creating the service call in the step Adapt Context  i can see Airline Destination from ,Destination to and max rows,
    i am not getting any choice to select dest from and to...
    and when it is finished.. the node bapi_flights_getlist doesnt have any subnodes like cityfrom country from ... flight list.. as shown in the example...
    Can anyone send me the screenshts of creating a service call specially the step Adapt context...to [email protected]
    points will be given..
    Regards,
    Kiran

    HI
      Pricing will be carried basing on the pricing
    procedure.
    Case1: Prices will be carried out automatically if
    necessary condition records are maintained for the
    condition type.
      For this you can go to Sales Order-> Item Conditions
    In the screen you can click on command button Analysis,
    which gives you the list of condition types associated
    to the pricing procedure. By clicking on the condition
    type you can know the action that has taken place.
    Case2: Manually forcing prices for Items.
      To do this, you have to populate ORDER_CONDITIONS_IN &
    ORDER_CONDITIONS_INX. Also note to identify the item
    numbers, you manually pass the item number for each item
    in the sales order, use the same item number for
    populating conditions.
      Parameters required:
    ORDER_CONDITIONS_IN:
      ITM_NUMBER, COND_TYPE, COND_VALUE, CURRENCY
    ORDER_CONDITIONS_INX:
      ITM_NUMBER, COND_TYPE, UPDATEFLAG, COND_VALUE,CURRENCY.
       Hope the above info helps you. Do revert back if you
    need more info.
    Kind Regards
    Eswar

  • Problem with updating DB table in using BAPI

    HI,
    The code below does not update the DB table even if the commit work is executed... is there something wrong or missing??? Thanks a lot!
    Technically complete process Order
           CALL FUNCTION 'BAPI_PROCORD_COMPLETE_TECH'
             IMPORTING
               return = i_messages
             TABLES
               orders = i_orders.
             IF i_messages-type NE c_error.
               REFRESH i_messages3.
               CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
                 EXPORTING
                   wait   = 'X'
                 IMPORTING
                   return = i_messages3.
            ENDIF.

    Hi this is your code right.
    You have to check the return table not messages.
    Check the return table is there any message type is there with 'E' .
    if it is there then the commit work won't give the result in fact the BAPI function is not executed successfully.
    If you got any Error message in return table please have a look into that table errors and take the necessary action.
    Pass the required paramaters for the BAPI function module.
    Regards,
    Madan.

  • Problem with creating specific area by using BDT

    Hi Experts, i need some help plz,
    I have finished all the steps in note690900. But, there are 2 problems:
    1. I created a field called "PLU" (it has a matchcode), which must be displayed in a sub-screen (I create the sub-screen also) in TCODE REBDAO -> general data
    Now, the problem is that it is always display under both 'CHANGE' and 'DISPLAY' (That means, I can always modify the value of this field, but normally, we can't modify any value under 'DISPLAY')
    It is strange, I think the Filed Status must be modified, but I don't know how, do u have any idea for that?
    2. In TCODE REBDPR, I need to add a new reference/index,(just like 'general data', 'building law and usage' u2026) so in TCODE RECACUST -> Usage View -> Property -> Dialog -> Screen Sequences -> Screen Sequences Category u2013 Screen, I copied the standard to 'Z*', and added the new reference/index, then in Screen Sequences Category - Screen Sequences, defined the 'Z*' be displayed as standard.
    But the problem is: in TCODE REBDPR, the screen always displays the version of standard but not my 'Z*', how can I let the transaction display my screen 'Z*'?
    thanks

    Hi,
    please try the following.
    1.
    I assume you have set the field status according to the activities (display/change) for your field group.
    Please check if the PBO and PAI modules are created as described in note 690900 and assigned to the field group.
    note 690900: 
    c) Create a view for your fields by choosing 'Dialog -> Screen            
       Layout -> Views'. For this purpose, copy an existing entry, for        
       example REGC02. The name of the new view must begin with the           
       application, for example ZZZZ01 with the text 'Contract: File          
       number'.                                                               
       In 'Application' field, enter the name of your application.            
       In the 'Subscreen' area, enter the program name (SAPLaaaaaa with       
       aaaaaa being the name of your function group) and the screen           
       number of the subscreen created before:                                
       Program name: SAPLY_REGC_EXT                                           
       Screen number: 0901                                                                               
    In the 'Function module' area, enter the name of your PBO module       
       in field 'Before Output' (for example, ZZZZ_REGC_PBO_Z901), and        
       enter the name of your PAI module in the 'After Entry' field (for      
       example, ZZZZ_REGC_PAI_Z901). Leave the values of the remaining        
       fields for the view unchanged. NEVER use the function modules          
       from the standard view in your own screens. If you do so, a            
       program termination will occur because the subroutine to be            
       called is determined dynamically by the standard module.        
    Please assure that the function modules are created and assigned to   the view you have created.
    Please check also if the fields in your field group are assigned to the right table.
    e.g. PROPERTY
    The right one is REBD_PROPERTY_CI, not CI_VIBDPR!
    Please check also in your screen that your new fields have assigned the right structure (REBD_PROPERTY_CI) with dictionary reference!!
    2.
    Please check your entries in Screen Sequences Category - Screen Sequences.
    There should be both(!) entries the standard REBDPR and your Z* entry. Then you set the button 'standard' for your screen sequence and it should work. (I checked it in my system and at least there it worked)
    Hope this helps.
    Regards, Franz

  • Problem with Batch Processing an Action using a Graphic Style Library

    Hi,
    I have ~100 files in which I need to change the fill and stroke of all the linework. I created Graphic Styles for all my new features. I then created an Action that sets a fill and stroke color, Select Same Fill and Stroke, then applies the new Graphic Style. This repeats for about 20 variations (ie; select all Fill=X, Stroke=Y, then apply Graphic Style A. Select all Fill=X2, Stroke=Y2 then apply Graphic Style B). It runs fine in my test file. The problem occurs when I try to run it in batch mode. I have my new Graphic Style Library set to Persistent, so that it is open for every file. But the action does not apply the new Graphic Styles. It's like it doesn't see/read the Graphic Style Library. I don't get any errors, the action completes. It just doesn't apply anything.
    Does anybody know what I am doing wrong? Are you not able to use an action to apply a graphic style from an added Library?  Do I need to add the graphic styles to the Graphic Styles Panel and have the action reference the Panel, not the Library?
    Any help or insight is appreciated.
    M

    Try this:
    Copy an item that has the Graphic Style to the clipboard before starting the action. Then put a paste step followed by a delete step at the start of the action.
    Hope that helps.
    Mike D.

  • Update Process Order Confirmations Back to SAP ECC

    Hi,
    Is there a document or step by step guide which explains how i can update  SAP EARP with process order confirmations from my shopfloor?  Below is the scenario i am looking for help in
    1. There is a SQL server table where the SHOP floor update the quantity manufactured against a Process order.
    2. I need to pick up that data from the SQL server table and update the ERP against that Process order.
    Can any one explain how this can be achieved.
    I checked the sample's and the templates in SDN but none of them actually show how to update any ERP?
    Please advice!!.
    Regards
    Suraj

    Check this one
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60ac6bb8-a684-2b10-208d-b90883004a5e
    https://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/204a13d0-399d-2b10-ec84-9c254cd7efd4
    You use this component to enable the shop floor operators to record their production order and process order confirmations using a touch screen user interface. In SAP ERP Central Component (SAP ECC) operators must complete many steps to confirm orders. Instead, you can use this interface, on a touch screen to enter the production performance easily and effectively. You can also use this component to obtain operators' work lists and information on their current activities.
    Regards
    Ram Upadhyay

  • Process order confirmation reversal

    HI friends,
    I am cancelling a process order confirmation using T-code CORS. The confirmation cancellation is happening, but the goods movements are not reversed. Help in resolving will be much appreciated.
    Thanks in advance.
    Warm regards
    Vivek

    Hi All,
    Sorry for the delay in response and thanks for your suggestions.
    The backflushing is activated. I checked in COGI transaction for the concerned order. I got several entries with different error text. The error text is as follows
    "You have no authorization for this transaction with movement type 102"
    "You have no authorization for this transaction in plant XXXX"
    "Deficit of SL Unrestricted-use 6,957 TO : 1030604 XXXX PL01"
    Please let me know how to resolve these errors.
    Warm Regards
    Vivek

  • ABAP Programming Error when saving the Process Order confirmation in COR6N

    Hello,
    We have an issue related to Process Order confirmation using Tcode COR6N. When we enter all the inputs to confirm( Activity, yield and phase) and click on save it gives ABAP Programming Error (Exception condition "SEQ_NOT_FOUND" raised).
    Any inputs in this regard, would be appreciated.

    Hello
    I can observe that you have implemented the report ZOPSECRE and that an inconsistency was found.
    This repor corrects inconsistent orders which do not have an operation or a sequence, or the two of them.
    The report checks whether there is at least one operation or one sequence and creates both including status objects.
    Therefore, you need to have the default valus for the operation generation defined on OPJG for this order type/plant.
    BR
    Caetano

  • Problem creating process order with ref of sale order

    Dear all,
    Kindly give solution for this scenerio..............................
    I am creating Process Order with ref of sale order manually in cor1. In the COR1 screen copy from field i gave my ref sale order, so that particualr order and batch is assigned to that order only.
    My problem was suppose if sale order is created for 10 tonns, but my batch size and resource capacity is 2 tonns only. so first time i change my batch quantity 2 tonns instead of 10 tonns and created my order and confirmed.
    if i go to second time the same process i am doing creating process order with ref of same sale order but it comes again 10 tonns instead of 8 tonns. why it comes like this already i confirmed 2 tonns in this sale order?
    my requirement is if any process order is created with ref of any sale order and again if i am creating any process order with ref of same sale order left quantity only system should show.
    for this what i have to do kindly help to this
    regards,
    s.sakthivel

    Dear KK,
    Pls check whether ZKIN, ZKQT, ZKOR have all the properties similar to IN, QT, OR respectively. If they are different, please ensure that you know the reason why they are different. This check has to be done at tcode VOV8
    Some fields like sales document category, Transaction group, screen seq group, Doc pricing procedure need to be similar to the parent document unless you know why you have changed them.
    Once this check is done, check the copy controls in VTAA. Before that try creating these documents separately without reference. This shoudl work fine only after which you need to check copy control. If this is not working fine, then there is some problem with the document type settings in VOV8. Testing this is possible only if Reference mandatory field is left empty. Make sure that is properly configured.
    Once this is done, check copy controls in VTAA. You can just copy the copycontrol between IN and QT and QT and OR and create for ZKIN to ZKQT and ZKQT to ZKOR.
    Once this is done, check whether your item category settings are properly done , also the schedule line settings. The tcodes are VOV7, VOV6, VOV4, VOV5 etc.
    Now check whether your material master and customer master are consistent with the item category settings(Item category group).
    Now create the transaction. It shoudl work fine.
    Reward if this helps.

  • Create Process Order by BAPI (COR6)

    Hi,
    I am looking for BAPI to create Process Order (Order category = 40),
    Instead of doing BI to transaction COR6.
    I try <b>BAPI_PRODORDCONF_CREATE_HDR</b> but with no success,
    because it works only with Production Order (Order category = 10).
    I get the following error: <i>“Orders of the order type YI01 cannot be confirmed“</i>
    (YI01 is a Process Order type).
    Thanks in advance,
    Gilad.

    Hi Gilad, I the same problem, I am using the bapi 'BAPI_PRODORDCONF_CREATE_TT',
    please if you find the correct BAPI, send me,
    If I find it first, I send you.
    Thanks for your help.
    Leonel Saavedra
    Guatemala.

Maybe you are looking for

  • Filter Panel in Bridge not showing all the categories

    I am using Bridge CS5 and I download my photos to my laptop using Canon's EOS Utility program. In the Filter Panel on the left I get only a few catogories for some folders where for other folders I get the total of the categories. When I do click on

  • Happy Birthday iMac

    This month is the 10th birthday of the iMac! Wow, has it been that long since I stood out front of my local Comp-USA waiting for the truck to arrive with the first of the beautiful bondi-blue all-in-ones? I had been looking for an alternative to Wind

  • Q10/BBY Link - How to change appearance?

    I have the Q10 and the "delightful" new Link software to do one-way transfers of data... Every time I open the Link software, I get this page full of pictures and videos that on the phone. Is there a way to hide these and go straight to the productiv

  • Can expose be reversed to the old look?

    I just installed snow leopard, and I seem to like how the old expose displays all the windows, compared to this new one, I hate the neon glow around the hovered window, and the new grid layout. I don't really think that there is a way to make it look

  • Linking Directly to my Photos

    iWeb 06 let me visit my site, find a phot on one of my pages, copy a link to the photo, then reference that photo using the img src tag on messages boards and other people's journals. iWeb 08 does not allow me to copy a link to the photos, and there