Changing internal order's via Inbound IDOC

Hi,
      We are having Inbound interface set for creating internal order's using message type 'INTERNAL_ORDER_CREATE01'.
       But when any existing internal order is changed it is giving status 51 with error 'Order already exists'.
      I am wondering how can we handle the changed order situation via inbound IDOC . Is it possible to do it via message type 'INTERNAL_ORDER_CREATE01'.
Regards,
ganesh

Hi ganesh,
The idoc Status 51 for indound idoc is....
51 Application document not posted
the possible solution is checkthe Partner profile for the Idoc and Port number..
and go to T_code we20 and check the Partner.and check the Syntax in the application tool bar...
then you will come to know the problem..
and if you wan to changed order situation via inbound IDOC , yes it is possibel.
go to t-code we57 and check the Function module attached to the message type .
and go to FM and find hte customer exit and read the segment which contains order situation and modify the segment..
i hope this will solve the problem..
Regards,
Prabhudas

Similar Messages

  • Change sales order values from Inbound Idoc

    Hi all,
         In my scenario i have to change sales document automatically(Workflow) by getting the values from the inbound idoc ordchg (one more thing i dont want to create another sales document). Is there is any function module? please tell me how to do this.
    Regards,
    Adithan S.

    Hi Adithan;
       You can read the IDoc information using the function IDOC_READ_COMPLETELY as demonstrated in the example below:
    DATA: int_edidd TYPE STANDARD TABLE OF edidd WITH HEADER LINE,
           wf_docnum type edidc-docnum.
    MOVE: 'IDOC_NUMBER' to wf_docnum.
    CLEAR int_edidd.
    REFRESH int_edidd.
    CALL FUNCTION 'IDOC_READ_COMPLETELY'
         EXPORTING
              document_number         = wf_docnum
         TABLES
              int_edidd               = int_edidd
         EXCEPTIONS
               document_not_exist      = 1
               document_number_invalid = 2
               OTHERS                  = 3.
       After that call, you can loop through int_edidd to get at the segment information you need.
       You can update the sales order using BAPI_SALESORDER_CHANGE.  Below is an example of updating line 10 of a sales order with a new material number.
    DATA: l_vbeln LIKE bapivbeln-vbeln,
          so_headx TYPE bapisdh1x,
          change_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
          so_item_in TYPE bapisditm OCCURS 0 WITH HEADER LINE,
          so_item_inx TYPE bapisditmx OCCURS 0 WITH HEADER LINE.
    MOVE 'U' TO so_headx-updateflag.
    MOVE <insert sales order number here> to l_vbeln.
    MOVE:  '00010' TO so_item_in-itm_number,
           'MATERIAL_NUMBER' TO so_item_in-material.
    APPEND so_item_in.
    MOVE: '00010' TO so_item_inx-itm_number,
          'U' TO so_item_inx-updateflag,
          'X' TO so_item_inx-material.
    APPEND so_item_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
         EXPORTING
              salesdocument    = l_vbeln
              order_header_inx = so_headx
         TABLES
              return           = change_return
              order_item_in    = so_item_in
              order_item_inx   = so_item_inx.
    Cheers,
    John

  • User exit for Internal Order SaveReplica or ALE/IDOC

    Hi,
    We're currently copying back internal orders from our PRD environment into QAS using the class method InternalOrder SaveReplica via the distribution model in BD64.
    We've extended table AUFK to include some custom fields and are populating it nicely via the user exit provided.  However, we want to include these values when we replicate the data back in our QAS environment.
    The BAPI for method CREATE contains the "EXTENSIONIN" table so I think I know what to do there, but we are using SAVEREPLICA which doesn't offer any extra fields.
    What is the best way to copy this data back into QAS?
    Would it make sense to put a user exit RFC call in the QAS system to populate the values after reading them from the PRD system at the time of saving?
    I can't find any user exits.  We are doing this based off of change pointers. 
    Would you recommend using basic ALE, doing an extension to idoc type internalorders01 or something?
    Thanks for any suggestions.

    Hi,
    usage of specific combinations of internal orders + cost elements:
    Create FI-validation rule (T-code OB28 or GGB1) using BSEG-HKONT, BSEG-AUFNR for call-up point 2. Assigne this rule to the comp. code(s) needed.
    Best regards, Christian

  • NO MATERIALs in the Sales order created through inbound idoc file

    hi,
    i have maintained the customer material number as well the SAP Material number in the tcode VD51,but still the inbound
    idoc type ORDERS03 is posting the application document(Sales order) without the materials.
    for instance,
    I have cust.material as CUSTMAT1 in the idoc file.
    I have maintained the CUSTMAT1 as cust material and 1001 as material no in VD51.
    After posting the inbound idoc file using RSEINB00 prg,the idoc is created and i can see the CUSTMAT1 in the material segment field
    The Sales order is created successfully ,but without the materials.
    i need the application document has to be posted with materialsm,can any one help me to solve this issue.?
    Thanks

    Hi ganesh ram
    In order to determine the Material Number with you custom material then you needs to have some configurations.
    Check with your Functional consultant to add the Access sequence for determining the Material Number with you custom material
    In Sale order processes...
    Thanks
    Ramesh

  • BAPI or FM for CHANGING Internal Order

    Hi all,
    I am looking for a BAPI or Function module for changing a End of Work field (DATE field) for that Internal Order.  Transaction for internal order KO02
    Please suggest.
    Edited by: Anu on Jul 6, 2009 3:30 PM

    Look at [BAPI_INTERNALORDER_SAVEREPLICA|https://forums.sdn.sap.com/search.jspa?objID=c42&q=BAPI_INTERNALORDER_SAVEREPLICA] (parameter MASTERDATA field DATE_WORK_ENDS)
    Regards,
    Raymond

  • Create PM orders/notif with inbound IDOC

    Hi all,
       Anyone knows how can I create a PM order and a PM notification with inbounds IDOC?. If there are not IDOC available, it´s possible create PM order and notification trhought BAPI´s?.
    Thanks in advance
    Abel

    Hi Abel,
    Have a look at BAPI_ALM_ORDER_MAINTAIN for PM Order and BAPI_ALM_NOTIF_CREATE for PM Notification.
    You can check the BAPI's from transaction code BAPI.
    Hope this helps.
    Thanks
    Lakshman

  • Changing internal order

    Hi all,
    How to change the internal order from true to statistical?
    Could you please help me.
    i ll assign points
    Regards
    Raju.k

    Hi Chandrassekaran;
    I really joined your suggestion about create a new order with statistical posting and do the reposting of line items from old IO to a new order.  
    My only doubt about this is how can I reposting of line items from old IO to a new order. 
    Best Regards
    Luiz Vargas

  • KO02- Change Internal Order

    Hi,
    Is it possible to change the field Order type once the internal order is created? when i go to KO02 the Order Type filed is grayed out. Is there any work around for this?
    Thanks
    GB

    Hi GB,
    Can you please tell us the business situation in which you want to change the order type? There might be a process work around. Anyways this is not possible because it is the primary master data on which the order is created.
    best regards
    Vimal

  • Internal orders - what is its IDOC

    I want to create an internal order in finance/controlling. My scenario is to create a IDOC for internal orders in sap system. I am going to use IDOC sender adapter to post the data in SAP. Can some one tell me what is the IDOC type or IDOC I need to import into Integration Repository.
    Thanks,
    Reddy P

    Hi,
    It depends on what version of R/3 system you are using...
    See if your R/3 system has the IDoc types - INTERNAL_ORDER01 /INTERNAL_ORDER_CREATE01 / INTERNAL_ORDER_CREATE02...?
    These can be used..
    You can use FMs - IDOC_INPUT_INTERNAL_ORDER / IDOC_INPUT_INTERNAL_ORDER_CREA to post and create the internal orders
    Thanks.
    Message was edited by:
            Renjith Andrews

  • Bapi for changing internal order settlement rules

    Hi
    I'm looking for BAPI to add/ modify settlement rules in internal order (like in tc KO02). BAPI_ALM_ORDER_MAINTAIN seems not working, and there's only BAPI_INTERNALORDER_CREATE and GETITEM in internal order group ( there's no MAINTAIN ).
    Is there another BAPI to do this? of FM?
    regards
    Wojciech.

    Thanks for help but this links points to discussions abut creating internal order. I want to change one. BAPI_INTERNALORDER_CREATE does not allow to change orders ( i've just tested it.)
    regards
    wojciech

  • Function Module/Badi to change internal order

    Hi All,
    Can any one please let me knw the FM or BADI to change an internal order.

    Hi Shilpa.
    I would like to suggest a few,
    BAPI_INTERNALORDER_CREATE - Create Internal Order From Transferred Data.
    BAPI_INTERNALORDER_GETDETAIL - Delivers master data, statuses, and allowed transactions for internal orders
    BAPI_INTERNALORDER_GETLIST - Delivers lists of internal orders according to various criteria.
    BAPI_INTERNALORDER_SAVEREPLICA - Replicate Individual Internal Order (ALE).
    A few more apart from BAPIs are -
    ALE_INTERNALORDER_CREATE                                                                            
    ALE_INTERNALORDER_DB_CHANGE                                                                         
    ALE_INTERNALORDER_SAVEREPLICA                                                                       
    IDOC_INPUT_INTERNAL_ORDER                                                                           
    IDOC_INPUT_INTERNAL_ORDER_CREA                                                                      
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave
    Edited by: Harsh Dave on Jul 14, 2008 2:37 PM
    Edited by: Harsh Dave on Jul 14, 2008 2:40 PM

  • Change Internal Order

    Hi,
    I have created a statistical Order without giving "actual Posted cost center" field in control tab. now i can't make changes in that field as it is showing as non editable field. how can i make changes to insert cost center so that at the time of posting i don't have to give cost center and business area.
    Thanks in advance
    Regards

    Hi,
    Check note 198036; it explains how to make this field editable.
    Regards,
    Eli

  • Issue while trying to create Sales Order from Inbound Idoc ORDER05

    Hi All,
    I am trying to create a sales order through an Inbound idoc ORDERS05 created out of a Purchase order. The header pricing conditions from the Purchase orders gets populated in E1EDK05 segment and this needs to go to the Sales order header conditions while trying to create the Sales order.
    But when the fields are getting incorrectly mapped to the Sales order. Issue  being, the segment E1EDK05-BETRG contains the condition value. But this fields gets populated to the KOMV-KWERT (condition value) screen field on the Sales order header conditions. But this should have got mapped to field KOMV-KBETR (Rate). If I look at the Purchase order, E1EDK05-BETRG is the field getting fetched from field KOMV-KBETR on the Purchase order. So this should have correspondingly got mapped to KOMV-KBETR on the Sales order as well.
    This looks like a standard behavior. But if any of you have encountered this issue before please let me know if any Correction instructions are available for the same. If this some issue in Pricing conditions configuration, do let me know.

    Hi Paaavan
    You can set a break-point include "FV45PFAP_VBAP_BEARBEITEN_VORBE" that is called by both the SAP Standard and BAPI where the data is prepared and checked in the internal table XVBAP. Compare both SAP standard VA01 and your 'Z' program for what may be different in XVBAP.
    I think the problem my be with regards to the business_object number that is hardcoded in the standard function module. It has given me issues before and hence I tend to use the function module  SD_SALESDOCUMENT_CREATE to create sales documents with.
    Regards,
    Marius

  • How to trigger change documents based on inbound-idoc?

    Hi experts,
    Currently I'm working in on a project where I have to create an interface based on IDOCS. This is an interface for two SAP-HR systems.
    If there are made changes in the dialog (gui) by a user, there will be created a change document, which can be displayed by report RPUAUD00. For the inbound-interface based on idocs it's important that there will also be created a change document in the system based on this idoc. We have tested this, but no change document is created.
    Can anybody help me to solve this problem: "How to create a change document based on the inbound-idoc?"
    Thanks in advance.
    With kind regards,
    Roy

    Thanks for responding. First, I like the idea of defining an event, but I'm still stuck with how to trigger it. I looked at dynamically registering events, and maybe doing something where a click on the graph control registers an event for key presses on the vi. I'd still have to figure out out to terminate the key press event. Unfortunately, (actually it's a feature I like..) there are a number of different ways to complete typing in a scale change. I routinely use ctr-enter (habit from working on a laptop), though enter works fine, and clicking somewhere else is probably the most common method. I am not that familar with User Defined Events, so I may be overlooking something obvious here.
    The graphs are a Bode Plot, with a seperate graph for RPM vs Phase Lag, and RPM vs Magnitude. I want them to always be plotted on the same x-axis. The plot is generated when the user doubleclicks on a dataset. After that, it's just the user looking at it. They can change the axis without any new data being generated.
    Thanks,
    Chris

  • BAPI   for  Changing  Status of  Internal Order Tcode : KO02

    Hello Everybody ,
    I want to change   System status  of  Internal Order   Tcode  :  KO02 .
    I.e  if  status  are  REL  (  Released  )     then  I  want to make it as  CLSD ( Closed )    and  Vice  Versa .
    In     AUFK   ,
    AUFK-PHAS2    =    REL  (RELEASED )
    AUFK-PHAS3   =    CLSD  ( Closed )  
    this field we need  to set    as    'X'   as per our requriment .
    I used    FM    "  ALE_INTERNALORDER_DB_CHANGE  "  to   changing this  field  .
    but after excution  this   FM   ,  value of this field  is changed  but  when i see the  same order in  KO03    this is not  reflecting   but value  in AUFK  is changed   .  
    this  should not be happend  if the value is chage in Table AUFK  then   must be reflect  in  KO03  .
    I also used    BAPI_INTERNALORDER_SAVEREPLICA    for  Change Internal Order  but it's  no use  ....
    Please  suggest me  any  BAPI  as per  requriment   .
    ASAP
    Regards,
    Sandeep

    Hi  ,
    You are right   .... I   want to chage the status of internal  order  if  CLSD  then  it should  be  REL    and   vice-versa   .
    and things   I am  talkinG about is   that  'X  is maintained  in  table  AUFK-PHAS1  =  'X      for  REL   and  AUFK-PHAS3 =  'X' for  CLSD   .
    So my point is that  is there any  BAPI   of  FM    available    for changing  the  status   of  Internal Order  .
    from CLSD   to  REL  and from REL  to  CLSD   ?
    i used    this   FM   :    ALE_INTERNALORDER_DB_CHANGE  and 
    BAPI                    :    BAPI_INTERNALORDER_SAVEREPLICA                        But not getting output   .
    Regards,
    Sandeep

Maybe you are looking for

  • ITunes not working and iTunes store not loading...I've tried everything...help please!!

    i have been having this problem with my iTunes for a very long time now it and is VERY frustrating! i have tried everything with no succes....any ideas or tips?

  • Optimum setting for LiveTrace

    Using Adobe Illustrator CS3 Livetrace feature. But why is the tracing function in Flash render more effective (and closer) vector objects (specially with low resolution pictures)? What is the optimum setting for Livetrace?

  • HT1338 Uploading from Canon 400D to iPhotos

    I am experiencing a similar problem to many other current users. Blank thumnails, photos from previous albums layering over new album. I have been using iphotos since 2008. Since going to iCloud and having to upgrade to the latest Lion OS I seem to h

  • How do I save an email address via the ORDERS05 IDoc?

    I am creating sales orders via the ORDERS05 Idoc.  I am using the E1EDKA1 structure to add the "WE" Ship-To address to the order.  There is no field in E1EDKA1 named SMTP_ADDR.  I could put it in the Telebox (TELBX) field, which we're not using, but

  • How to enhance header tables

    Hello experts, I am working on SRM 4.0. As per my requirement i need to update one field during shopping cart creation.For this i have to add a custom field at header  level to the shopping cart. The header tables which we have are "CRMD_ORDERADM_H"