Process order IDOC

Hi Gurus,
Please help.
I wanted to send "All" details of a process order to a legacy system "immediate". All details includes process order header material, operations, all components and their details.
In material master (master data) we can activate change pointer for material and use BD21 to schedule (every xy minutes) to send the material master to a remote system.
Do we have such facility in process order (production order)?
I did the research on following:
POIT : Good transaction but unable to get the process orders which are changed for a given time
LOIPRO: Used this mesage, but it is not selecting all components of a process order
Is there a "standard way" to trigger the process order details to a legacy system?
Thanks for your help.
- Nagarajan

Hi,
Thanks for your reply. My requirement is to send the process orders during each save time after the process order is released. Before release is also fine, so in general the requirement is send the process order to a legacy system whenever the process order is saved.
I tried to execute this program with material number range, logical system and message type "LOIPRO". It didn't do anything.
Please help.
Thanks
Nagarajan

Similar Messages

  • Converting Process order Idoc to Post a Purchase order

    Hi,
    we have a requirement where we will get a Process order IDOC that is LOIPRO as an inbound IDOC. We need to use the IDOC to create a purchase order.
    Can anybody suggest what can be done.
    Sender system sends LOIPRO.
    Recieving system recieves it and need to post a purchase order rather than a process order.
    Thanks,
    Neha.

    No Reply..so far..

  • Process Order - IDOC processing

    Dear All,
    I am using RCCLORD program (submitted from a custom program) to send LOIPRO IDOC to an external system. It is working wonderful. Only probelm is when the order status is set "Deletion" (status DLFL), I am not getting the IDOC. My requirement is to send the IDOC for all the times irrespective of the order status.
    Can this requirement acheived by changing configurations or changing the selection parameters for RCCLORD when submitted from a custom program? I am on ECC6.
    Thank You.
    - Nagarajan

    Hi,
    Please check if following SDN Thread helps you.
    IDOCS : Production orders and order receipt
    A program example is also given therein.
    regards
    Datta

  • ORDERS idoc processing in workflow

    I have a situation when processing ORDERS idocs thru workflow. The unit of measure is inadvertently switching from what is on the idoc (EA) to the base (CA) after correcting the "qty not in valid multiples" error and saving the order.  the standard VA01 logic handles this situation correctly. Has anyone ever seen this 'switch' in any of their work. Any help would be greatly appreciated.

    Hi,
    The no of IDocs processed at a time is based on the Packet Size that is specified in the configuration of the Partner Profile(WE20). Likewise the specification of the Output Mode is given as either Transfer IDocs Immediately  or Collect IDocs in which case the IDoc would go to 30 status and it would have to be processed using RSEOUT00.
    Thanks
    Krithika

  • Triggering IDoc LOIPRO01 for process orders.

    Hi,
    I have to create an IDOC LOIPRO01 and send to third party, whenever the save of the process order using COR1 and COR2 tcodes based on some conditions like plant US01, Order type ZC01 and released status
    Should I use the user exit EXIT_SAPLCOBT_001 and create an IDOC from there based on condition ?
                                                 (Or)
    Create a custom report based on conditions and call MASTER_IDOC_DISTRIBUTE ? (or) any best approach ?
    Thanks - Vinay.

    Hi,
      Check this link for your query. You need to build some custom tables and structures.
    Check the program and create those structures.
    [http://wiki.sdn.sap.com/wiki/display/ABAP/ProductionOrderIdoc+Program]
    Let me know if you have any issues.
    cheers
    Aveek

  • Goods receipt against process order with inbound idoc

    Hi Experts,
    We need to post good receipt against process order with movement type 101 and for By-product 531.
    Can we use inbound idoc-WMMBID02,with message type WMMBXY to achieve this functionality?
    Or please advise if we can achieve this  from any other Idoc type.
    We are getting below field values for external system
    1. process order number
    2.plant
    3.material
    4.quantity in unit of entry
    5.unit of measure
    6.storage location
    7. movement type
    8.Batch
    Kindly advise how can we achieve this.
    Best Regards
    CS

    261 and 262 are two different movement types INDEPENDENT of each other. I definitely know for the fact that SAP allows you to create a 262 without a 261. if you were to restrict it... you can disable access through a tcode for that mov. type 262 and ask users to use MBST to cancel any material documents created via 261 movt type.. that would ensure a smooth process

  • Mass processing for inbound orders idoc's from file

    Hi Experts,
    I have an requirement wherein we need to process all the ORDERS idocs sent from a thrid party system to a particular folder in the SAP system. Now we use a custom programme which in turn calls fn module IDOC_INBOUND_FROM_FILE to process each file. Here if the fn. module IDOC_INBOUND_FROM_FILE hits an erroneous file (control record error) it issues abend message which causes to entire programme to exit leaving rest of the files in the folder unprocessed.
    Let me know if there is any other function module or way to tackle this issue so as to process all the files.
    Thanks & Regards,
    Jimmy.

    Add the exception ERROR_MESSAGE = 99 (or some other unique number) to the standard exceptions in the function module call in your custom program.  This will allow you to trap the error and continue processing.

  • Process Orders, send idoc (LOIPRO) while creation/modification(COR1+BADI)

    Hi all,
    I'm just trying to send standard LOIPRO idoc when a process order is saved on COR1 / COR2 transactions. First of all I've decided to do it via user-exit but I've seen that the order number (AUFNR) is not determinated yet, so finally I'm doing it with the BADI WORKORDER_UPDATE (method BEFORE_SAVE) where there is all the data ok.
    Until this point all goes fine. To send the standard idoc there is the program RCCLORD but as the order is not saved on the system tables I cannot do a submit, so I'm doing a call to the function where the idoc is send of the program ( CLOI_MASTERIDOC_CREATE_LOIPRO ). All seems to be ok, but finally it goes allways to a short dump because at the end of the function there is a commit instruction ( and it seems it is not possible into a BADI ).
    There is a easy way to do it or am I on the correct way?
    I'm trying a lot of possibilities ( and it doesn't work for distinct causes ) but allways the start point is the avobe process.
    Many thanks in advance.
    Legoles_

    Ok, I believe I have this solved...
    CORn
    --> Create or change a PP order, release and save
    BADI WORKORDER_UPDATE~BEFORE_UPDATE
    --> Do your checks and call a custom function module (ZZ_SEND_IDOC) sending the aufnr, matnr, and werks. Cal this FM starting new task destination 'none'.
    ZZ_SEND_IDOC (RFC-enabled)
    --> wait up to 60 seconds (so update finishes)
    --> add code to see if the record is no longer locked
    --> Fill parameter table rsparams with aufnr, matnr, werks, logical system, and mess type
    --> submit RCCLORD and return
    parallel processing rules say you should not use a submit in the FM but it is working for me.
    With this I can avoid using batch jobs to send these out. Yay.

  • IDOC: Process order: Message type LOIPRO

    Hi
    I would like to know here no other way to download LOIPRO idocs as soon as the process order or production order are created/changed.
    Currently i'm using program rcclord and rccltran to create idocs. The problem I see here is that during every execution ALL orders, disregarding of the status (i.e. closed orders as well), will be exported.
    G.
    Message was edited by: Giovanni Baumann

    Hi Baumann,
    You can use the BADI WORKORDER_UPDATE
    I am using this for releasing Process Orders. I hope this will help you..
    *Appending the Selection Screen fields.
    *Process Order
      s_rspar-selname = c_selnam1.
      s_rspar-kind    = c_kind.
      s_rspar-sign    = c_sign.
      s_rspar-option  = c_option.
      s_rspar-low     = im_ord_header-aufnr.
      APPEND s_rspar TO t_rspar_tab.
    *Material Number
      s_rspar-selname = c_selnam2.
      s_rspar-kind    = c_kind.
      s_rspar-sign    = c_sign.
      s_rspar-option  = c_option.
      s_rspar-low     = im_ord_header-matnr.
      APPEND s_rspar TO t_rspar_tab.
    *Planning plant
      s_rspar-selname = c_selnam3.
      s_rspar-kind    = c_kind.
      s_rspar-sign    = c_sign.
      s_rspar-option  = c_option.
      s_rspar-low     = im_ord_header-werks.
      APPEND s_rspar TO t_rspar_tab.
    *Order category
      s_rspar-selname = c_selnam4.
      s_rspar-kind    = c_kindp.
      s_rspar-low     = im_ord_header-autyp.
      APPEND s_rspar TO t_rspar_tab.
    *MRP controller
      s_rspar-selname = c_selnam5.
      s_rspar-kind    = c_kind.
      s_rspar-sign    = c_sign.
      s_rspar-option  = c_option.
      s_rspar-low     = im_ord_header-dispo.
      APPEND s_rspar TO t_rspar_tab.
    *Logical System
      SELECT  SINGLE rcvprn INTO v_opt_sys FROM edp13 "#EC *
       WHERE  rcvprt = c_rcvtype AND mestyp = c_messageid.
      s_rspar-selname = c_selnam6.
      s_rspar-kind    = c_kindp.
      s_rspar-low     = v_opt_sys.
      APPEND s_rspar TO t_rspar_tab.
    *Message Type
      s_rspar-selname = c_selnam7.
      s_rspar-kind    = c_kindp.
      s_rspar-low     = c_mesageid.
      APPEND s_rspar TO t_rspar_tab.
    *This statement will submit the programme RCCLORD using the table RSPARMS
    *which holds the fields to be filled in the selection screen for RCCLORD and return
      SUBMIT rcclord USING SELECTION-SCREEN 1000
                     WITH SELECTION-TABLE t_rspar_tab
                     AND RETURN.
    Cheers
    Prasad

  • Process Orders, send idoc (LOIPRO) when its released and saved.

    Hi ,
    Here is my requirement.
    For process Orders, send idoc (LOIPRO) when its released and saved. (COR2).
    Here are the options I have tried.
    - Create an enhancement spot after the commit statement, and submit RCCLORD
    For some strange reason Submit to RCCLORD isn't working. Even I have tried to execute it independently, It isn't working properly. It is working fine from POIT, but not independently...
    - Call CLOI_MASTERIDOC_CREATE_LOIPRO function module, but for this I have to get all the related data into proper tables, and I am not sure if it works either.
    I have searched here in SDN to for some help, the closest thread talks about creating a ZFM for IDOC creation, but I dont have much of the details of that.
    Re: Process Orders, send idoc (LOIPRO) while creation/modification(COR1+BADI)
    Need some help on this.
    Thanks & Regards,
    Kalyan Venigalla.

    Hi!
    not sure, but maybe it will help you:
    RCCLORD have code with check already sent orders
    Try add this code before submit RCCLORD
    *         -> free global table for collecting order numbers
              free memory id 'LOIAUFNRTAB'.                        "

  • Process Orders, send idoc (LOIPRO) while creation/modification cor1

    Hello,
    I need to send standard LOIPRO idoc when a process order is saved on COR1 / COR2 transactions. I want to do it using  user-exit but I've seen that the order number (AUFNR) does not have a value.
    Is there any way to know the number? is it stored in another field ? How can I find the first user exit where the AUFNR field is already populated?
    I saw a post in the same subject but there was no suggestion how to do it.
    Thanks in advance,
    sara

    Hi Sara,
    did you find a solution by now?
    We have the same Problem.
    I tried to call the function "CLOI_MASTERIDOC_CREATE_LOIPRO" from a BADi (IF_EX_WORKORDER_UPDATE~BEFORE_UPDATE" but since there is a commit inside it does not work. 
    Thank you!

  • Batch Number field in IDoc for Process Orders (message type LOIPRO01)

    Hello PP experts,
    Just wanted to ask if anyone of you have worked with message type LOIPRO01 (IDoc for process orders)
    There is a segment-field in this IDoc  E1RESBL-CHARG which has description of "Batch Number"
    We tried to assign a Bath Number for an Order (using t-code COR2 --> "Goods Recpt" tab under "Receipt" section), generated an IDoc for this order, but upon checking the E1RESBL-CHARG field of the IDoc it is not populated with the Batch Number.
    The material in the process order is FERT, so technically we're trying to assign a Batch Number in one of the process orders for a Finished Goods material type,  so not on the component level.
    Can anyone here verify:
    1. is the E1RESBL-CHARG field of IDoc LOIPRO01 intended for the Product Batch Number?  If Yes, how do we populate that for in the IDoc?  --> Do I need to have a Reservation/Dependent Requirement for the Product for the Batch Number to be populated in the IDoc?
    2. If E1RESBL-CHARG can not be populated for a Product that has no Reservation/Dependent Requirements, Do I have any option of populating this field with just the Batch Number assigned to the Process Order of that product?

    Solved - LOIPRO01 IDoc does not pick up the Batch Number from AFPO table, instead from table RESB.    We need batch from AFPO and just created a lookup using the Process Order Number as import param

  • Sales order IDOC process

    Hi Guys
    I need the ALE/IDoc entire process to receive sales order master data from clients
    Also IDoc using BADI when a sales order is created please help, I have not worked with IDOCS before.
    Points will be rewarded
    Thanks in advanced
    Regards

    One way to do what you have described:
    1.     Set the partner profiles for the inbound ORDERS message to u201CTrigger by background program.u201D  This will put the inbounds into status 64 until they are selected for processing by a user.
    2.     Write a custom report to list status 64 ORDERS according to relevant control record data (like sender and date received).
    3.     Build into the output screen of the custom report the ability to u201Cdrill intou201D an IDoc and display the information that your Sales folks need to make a decision. 
    4.     Build two command button actions into the u201Cdrill downu201D screen
    u2022     Process the IDoc (using a call-transaction to standard program RBDMANI2).
    u2022     Reject the IDoc and change the status to something other than 64 (like 67 or 68).
    May I suggest another approach? 
    Configure the document type that gets created by the ORDERS IDocs to default with a delivery block upon creation.  Then your Sales folks can review it and decide whether to remove the block or reject the entire order. 
    Regards,
    zKen

  • Sales order IDOC process Using FM J_4A_IDOC_INPUT_ORDERS

    Hi ABAP gurus,
    i am working on Sales order creation using IDOC .
    while i am Filling idoc i am filling reference document number and
    item number .(VGBEL and VGPOS). but when i process idoc i am not getting reference document number at item level.  here we processed idoc using FM J_4A_IDOC_INPUT_ORDERS.
    Please suggest me which segment do i neeed to fill for getting reference document number at item level .right now i am using E1j3p02 segment.
    or do i need to implement user exit for this.
    thanks,
    Neo.

    Hi Shareen Hegde 
    To create Inbound...idoc
    Use the Function Module in you Program : IDOC_INBOUND_WRITE_TO_DB to create the Inbound idoc
    Pass the Control record and Data record in FM.....
    Use Message type : Orders
    IDoc type : Orders01 or 02 or 03 or 04 or 05 ....  which ever suite for your requirement....
    Process Code : ORDE
    When ever your custom program for creating the inbound sales order with  runs .....
    it call the internally FM IDOC_INPUT_ORDERS to create the Sales order...
    or
    If you are getting the inbound idoc from subsystem .....then check you partner profile ,Message type ed and Process code is correct or not....
    I hope this resolves your issuse..
    Ramesh

  • Process inbound Idocs only one at a time

    Hi all,
    I'm searching for a solution to the following problem:
    We are receiving ORDERS-Idocs into our R/3 4.6C-system. These Idocs are processed by our own Z-function module. The function module's coding should assure that e.g. the first idoc of each day sent by a certain customer should create a new sales order (VA01), whereas the following idocs of that same customer should only add items to that sales order (VA02).
    To make this work, we must make sure that no two idocs of the same sender are processed simultaneously, or even better that the function module is running only once at a time. I tried the following practices, which didn't satisfy our needs:
    - create own ENQUEUE/DEQUEUE object and call the ENQUEUE at the beginning of my function module - didn't work!
    - use GET PARAMETER ID to read a flag and SET PARAMETER ID to set the flag - didn't work, second idoc was too fast!
    - write a record into own DB table and check existing entry with SELECT SINGLE FOR UPDATE - worked only sometimes, needs COMMIT WORK.
    - check if there are any flags you can set in WE20 - couldn't find any!
    Does anyone have a idea for my problem?
    Greetings
    Klaus

    Hi Klaus,
    form the mentioned options, I would give enqueue / dequeue a second try.
    I would use customer (/sender) as key field for your locking object.
    If you try to set the lock right in the beginning of your FM, whole customer should be locked for processing. Second test is of course, if already a sales order exists.
    Maybe here the problem occurs: when you have some parts in update task, select for sales order is not successful for some (micro-)seconds.
    Solution for this part: use synchronic booking / commit work and wait. Maybe make a test with a select for VBAK in the end of your FM to test existence -> if not successfull, you know you identified your problem.
    If this is your problem, you should make a new enqueue after commit (because it will be deleted by commit) and wait until DB gives you new VBAK entry.
    I would start with a test, why all this different locking options don't work (instead of looking for a different locking option): make a select after your sales order creation. If this is not successfull, then here is your starting point.
    Regards,
    Christian

Maybe you are looking for

  • Can see artwork in navigator but no on artboard, why??

    when i open a particular file i can see the artwork in the navigator but not on the artboard.. (in CS4). If i hover over the artboard i can see the outlines of the art but can't seem to be able to view the whole artboard to see the entire file... wha

  • Wanting to kill the tiger frustrations

    I'm having a frustrating, work lossing, everything going wrong day, please understand my tone if I get rude. I'm running 10.4.3, and have had several frustrations with it. I unknowingly tried to organize and control my fonts via FontBook - and messed

  • IDoc adapter inbound channel: Error Error when reading Exchange Profile

    Hello Experts, Currently i am working on an IDOC to file scenario, in which Data will be sent from ECC server (IDOC) to an FTP server via SAP PI, but when i try to send IDOC to PI, i am getting the following error in Transaction SM58:- 'IDoc adapter

  • How to create one file to 2 output files with a condition?

    hello friends, i have a scenario to split one file into two different files using a condition. based on the account number ( 100's of accounts) i have to split the file into two. ex: acc# 1, acc#2, acc#3 goes into one file rest of the account number

  • Text for 0CALMONTH2

    We have a query with 0CALMONTH2 in the rows. It used to show the long texts (January, February, ...). But making some other changes in the query, the texts were suddenly replaced by keys (1, 2, 3, ...). When looking at the properties for Calendar Mon