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

Similar Messages

  • 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

  • IDoc Configuration for Production Order Creation and Change

    Hi All,
    Please Help me out for IDoc Configuration for Production Order Creation and Change
    I have found the IDoc for Production Order
    Messgae Type : LOIPRO and IDoc type : LOIPRO01
    Actually my requirment is to send the (LOIPRO01 )IDoc from SAP R/3 to XI system ,when ever the Production Order Created and Changed,
    I have done following Configurations:
    1. RFC Destination created for XI system
    2. PORT was created for XI
    3. Partner profile created WE20 and LOIPRO01 IDoc is added in OutBound Perameter.
    I need to know how to do the followning.
    1. How do i configure the outbound Production order idocs when Production Order is created or changed.
    2. in NACE (Output control) which is the Application for Production Order.
    3. How can I set IDoc as output Type for Production Order Creation.
    Thanks in advance
    Dhanabal T

    Hi Michal,
    I know that it is the old thread but still want to get clarified from you out of curiosity.
    Unlike other IDOC, i actiavated change pointers for LOIPRO
    1.message and idoc type is linked
    2.function module , message type , idoc type is linked
    function module used is CLOI_MASTERIDOC_CREATE_LOIPRO
    3.BD64, distribution model is created and distributed
    4. port and partner profile is in place.
    5. IDOC is not getting generated after creating the process order.
    do we need to activate the change documents for the message type in BD52,
    if yes can you please provide the object types for the same.
    or i am missing something else. please guide me in this regards.
    Thanks in advance for your time.
    S.Janagar

  • Function module for Process order status

    Hi techies,
    I want to know the function module for process order status , idoc type is liopro01 and message type is liopro, my requirement is that based on the different status received in IDoc SAP should update the process order status, separate user status will be defined as "MO START" and "MO end" using status profile.also it has change the process order status to "TECO" also it should check the user status for "MO Abort".
    Thanks in Advance

    Hi ross,
    Try this function module.
    STATUS_CHECK_MULTI
    May be helpful.
    Lincon

  • Using change pointers for Process orders

    Hi Experts,
    We have a requirement where we need to send idocs when a process order is changed. Since process order data is a transactional data, can we still use change pointers?
    We tried using the message type LOIPRO and it is giving an error saying that this message type cannot be sent with change pointers.
    Can anyone guide me with the process and steps to get this done?
    Thanks.

    For change pointer, you would have to deligate the business object with t.code SWO1. To handle it, it would take too much time to explaint.
    If you use the BAdI, and call function in this way : "  CALL FUNCTION 'FUNCTION_NAME' IN BACKGROUND TASK AS SEPARATE UNIT EXPORTING ....." the function would executed only after commit (when you call the funtion, it holds in a queue for commit. In roll back, it get disapeared).
    User method in_update from the BAdI.
    Edited by: Lior Tabib on Oct 19, 2010 4:18 PM
    Edited by: Lior Tabib on Oct 22, 2010 7:27 PM

  • GR Cost not updating as Target Cost for process orders

    Dear SAPians,
    We are facing an issue in Target Vs Actual cost reporting for process orders. We are creating a process order after cost estimate of that material and doing the confirmations for activity cost. After that, GR has been done for the finished goods of that process order. That GR entry is updating the Actuals values but not updating the Target cost. When I am checking the standard report KKBC_ORD, I am getting the following figures.
    Cost Elemnt Text     |     Target Cost     |     Actual Cost     |     Target Vs Act
    Inventory Chnge FG     |     0     |     1,472,205.60-     |     1,472,205.60-
    Packing Matrl Cons.     |     1,148,142.37     |     1,252,752.68     |     104,610.31
    Raw Material Cons.     |     60,463.91     |     50,688.29     |     224.38
    Semi-Fin Matrl Cns.     |     181,934.68     |     367,959.56     |     186,024.88
    Labour Cost Activity     |     39,735.36     |     39,862.80     |     127.44
    Machine Cst Activty     |     41,611.75     |     43,153.01     |     1,541.26
    That 'Inventory Change FG' entry is showing the GR posting updating actuals and not target cost. This is causing huge difference in target vs actual cost that will affect the profit and loss figures ultimately.
    What am I missing here? What should I do to update the GR amount in Target cost as well.
    Shirazi

    Dear,
    Target Cost on Production Order or Process Order is shown only when Variance is Calculated.
    So please calculate the Variance, system will show the Total Target Cost.
    Br,Vivek

  • Issues during Component Batch Determination for Process Orders

    Hi,
    I am encountering a strange issue during component batch determination of process order.
    1. During creation of process order, when I execute batch determination, systems does determination based on strategies we have set and when I click on Copy it gives an error
    "Log cannot be saved: Object/subobject not specified"
    Message no. BL201
    *Diagnosis
    Log save cancelled because at least one log contains no object or subobject.
    Object and subobject are needed to classify application logs because there are several log types. Only a few logs are managed in main memory at runtime, so this classification is not needed.
    If the logs are to be saved in the database, object/subobject must be specified for later retrieval.
    Procedure for System Administration
    Object/sub object can be passed when a log is created (function module BAL_LOG_CREATE) and changed with BAL_LOG_CHANGE.
    The possible values for object and sub object must be configured in transaction SLG0.*
    If I save the order with CRTD status and come back again in change mode and do determination, It works fine.
    Again when the order is in REL status and do the determination, It gives the same error.
    This happens only for a specific plant, In other plants batch determination works in all scenarios.
    I checked for all plant related Config for batch determination and coudn't find any discrepancies.
    Please advise how to resolve this issue. Thanks in advance for your help
    Regards,
    Aheesh

    There Is no direct solution for your requirement just try this work around.
    While defining the batch determination search strategy for process order in COB1, there is one column Quantity proposal where you can attach the Routines (This is written in ABAB code )  make use of this, define New Routines with ABAB help to fulfill your requirement. Try this if found useful award full points.
    Regards,
    Ajay Nikte

  • Reverse Goods Receipt for Process Order

    Dear All,
    Please tell me how to reverse the Goods Receipt for Process Order for which already QM is cleared for that Particular Lot.
    But Confirmation is still yet Pending.
    I tried MIGO - Cancel - Material Document. But it is showing a message "Process Order already processed".
    Regards
    buss

    Hi,
    Use t code MB31
    Movement type 102
    Stock type = Unristricted use.
    Reverse by entering above information then you have to manually cancel the inspection lot.
    Regards,
    Vishal

  • BAPI for Process order change

    Hi,
    Can any buddy tell me the Bapi used for Process order change
    with following scenarios:
    Quantity change
    Resource change
    Rescheduling
    Control key change
    RM Change
    Recipe change
    TECO
    REVOKE
    Material shortage check
    Best Regards,
    Sheetal.

    Hi,
    BAPI_PROCORD_CREATE for process order create
    BAPI_PROCORD_CHANGE - Change Process Order
    BAPI_PROCORD_CLOSE - Close Process Order
    BAPI_PROCORDCONF_CANCEL for Cancel Process Order
    Confirmation.
    BAPI_PROCORD_COMPLETE_TECH - Complete Technically
    BAPI_PROCORD_RELEASE - Release Process order
    BAPI_PROCORD_SET_DELETION_FLAG - Deletion Flag
    BAPI_PROCORD_REVOKEUSERSTATUS - Cancel User Status
    BAPI_PROCORD_SCHEDULE - Carry Out Scheduling
    pls refer below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
    http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
    Regards,
    Sankaran

  • BAPI For Process Order Confirmation

    Hi,
    For Process Order Confirmation we are using the following tcode. COR6N. in the t-code we are include a new field (Shift Field) with help of CONFPP07. and we made the field as mandatory also. in cor6n it is working fine.
    now we are using the bapi for same Process Order Confirmation. here the new field is not available. we want to include the new  ( Shift ) Field also. we are using the following
    BAPI Fm: BAPI_PROCORDCONF_CREATE_TT .
    Regards
    Sathis

    BAPI_PRODORDCONF_CREATE_TT to confirm a production Order
    Erwan

  • Order type dependent parameters for process order

    Hello friends,
    In Order type dependent parameters for process order (T.C COR4), there is subscreen for Process data documentation.Inside it we have three options :a) Batch Record Required
                                                                        b) Order Record Required
                                                                        c) No Process Data Documentation Reqd.
    Through F1 help whatever information i have got regarding them, is not cleared.
    According to it, if i select Order Record Reqd, than first of all i will have to delete (archieve) the order record than only i can delete (archieve) the process order.The same is with Batch Record Required.
    So according to it if i want to delete the  process order than first i will have to delete order record.So guys may i know which order record firstly i have to delete?Than only the system status for process order will not have the status ORRQ (Order Record Reqd).
    And one more thing friends,if i select the third option No Process Data Documentation Reqd than which process data documentation system will not create?Or what will happen if  i select this third option?
    Thankingy you guys in advance.

    HI
    For process data documentaion pls check the following link:
    http://help.sap.com/saphelp_47x200/helpdata/en/89/a43ea8461e11d182b50000e829fbfe/frameset.htm
    Thanks

  • For process order matrix

    Hi All PP Gurus,
    Scenario from production client:
    Issue:
    For process order number 6300355; material code 15010163 the assay calculation is not correct.
    Process in use:
    Process order is created through tcode COR1 and Transaction code ZACOR2 is used for update of requirement quantity, i.e. assay calculation. The quantity calculated against batch no. 0001004480 is not correct. The correct value is 14.013.
    can u please help me regarding this issue?????

    your question looks to be very vague as you are giving order no/material no/ batch no which no member can view. explain more detail about your scenario and issue so that somebody may try to help. sorry for putting my view in direct manner.
    Thanks
    JK

  • Configuration for Process order for Forms

    Hi,
    I want to develop a layout for Process Order.
    Where we will do configure Print Program & Layout for Process Order like
    what we do in NACE for SD&MM related layouts!
    Will this Process Order supports both SAP Script & SMART Forms!
    Can anybody clarify!
    Thanks,
    Deep.

    Hi ,
         In Process order transaction ,in output options declare the form name and output type. In TNAPR table in SE11 create on row with the above o/p type and form name. I think  both forms will be possible.
    Actually where ever script form possible means there you can create smartform also.
    Thanks.
    Suma.

  • Scheduled finish date for process orders not updating in BW

    We are having problems with the scheduled finish date (GLTRS) for process orders. When the process order is already released, changes done in R/3 on the scheduled finish date will not result to a delta hence data in BW is not updated. Table AFKO, where data is coming from, is always updated with the changes though. 2LIS_04_P_MATNR is used in extracting the data.
    Has anyone experienced the same problem? We are looking for possible ways on how to have a delta whenever there are changes on the process order even after it is already released.
    Any help would be greatly appreciated...

    Hi Donna,
    If I've understood your problem correctly, you can increase the load frequency as Sriee has pointed out.
    If you want latest data frequently and if you are on BI 7.0 then you can look at Real Time Data Acquisition(RDA)
    Regards,
    Tom.

  • Inspection Lot for Process Order without Header Material

    Guys,
    We have an scenario that we create a Process Order without Header material using T code CORO. Is it possible to assign or create  a Inspection lot for Process order?
    Regards,
    Senthilraja

    Hi
    Please refer
    QPL10004 User subscreen for displaying additional data in insp. lot
    Regards
    Sujit

Maybe you are looking for

  • Launching jws application outside firewall

    Hi all, We have successfully deployed our application with JWS at a client site. We don't have any problems within the client environment, but we can't seem to provide home access to their users. Client is using Cisco VPN Concentrator 3020 series and

  • Problem in posting Service Entry Sheet for PO containing unplanned services

    Hi Experts, I am facing an issue with Service POs which are uploaded by a program as a part of Data Migration activity. Scenario- PO Document Type--> Framework Order Account Assignment Cat--> Unknown Limit Tab in Service PO--> Overall Limit and Expec

  • Error in VL10I Standard Program

    Hi All,           I was asked to debug standard program VL10i where not all deliveries are getting created when done together. some of them misses out.When I run then individually it works. Sometimes if you run in small batches it works..sometimes it

  • PLS-00306: wrong number or types of arguments in call to 'TO_CHAR '

    Hi guys, I am learning Pl/SQL. Trying to write a simple function which calculates some dates. It takes contract_date and determines the date of the following Sunday. My code current has the compiler error: PLS-00306: wrong number or types of argument

  • Website not found error

    Hi, One of our user says he is getting 'Web site not found' error within CRM application. What could be the issue ? We are using CRM 5.0