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

Similar Messages

  • Specific process code for Production order message type LOIPRO

    Hello,
    Is there any specific process code for Production order message type LOIPRO.
    Request you to reply.
    Thanks
    Prashanth

    Hi Prashanth,
    sorry for last thread ... that not contain full information ...
    For message type LOIPRO you can use process code APLI.
    In IDOC PARTNER definition, the partner is linked with an IDOC TYPE and PROCESS CODE for inbound processing. This process code is in turn linked with a FUNCTION MODULE to process the IDoc such as IDOC_INPUT_INVOIC_MRM (Reff..  http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_cid519558,00.html)
    Regards,
    Amit

  • 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 Message Type LOIPRO (Production order)

    Hi All,
             How I can setup Process code for inbound Production order (Message Type LOIPRO)
    I receive idoc file from external SAP system I try to use "BAPP" , "ABI_AIDN_IN" , "APLI" it not work for
    this message type. Idoc error message "Function module not allowed: APPL_IDOC_INPUTI"
    Regards,

    It should go with BAPI..have you tried that?

  • How do I execute IDOC for message type LOIPRO

    How is it possible to execute IDOC using message type LOIPRO which I have configured with change pointers?   Change pointers are using object ORDER.
    I am looking to only generate IDOC for production order changes / updates that meets the criteria set by the change pointers.  If something in the order changes, but that field is not being looked at by change pointers, I don't need IDOC to pick up that order.
    I don't want to have to run RCCLTRAN or RCCLORD on a scheduled job. Only need to have activity if change pointers are activated. Am I going down the wrong road using LOIPRO ?

    Hi Bob,
    Could you please guide me through the process of creating/triggering a change pointer based LOIPRO? Your help much appreciated.
    Tabraiz

  • Idoc creation - Different Message types

    Hi All,
    Is there an efficient way of  to create both DEBMAS and ORDERS message type idocs within the same same ABAP program?
    Please advise.
    Regards,
    Meghna

    Thanks for your reply.
    We have lot of custom development and we have to go with an ABAP program to create these Idocs.
    Here's what I am planning to do:
    fill DEBMAS05 idoc type.
    append EDIDD.
    fill ORDERS05 idoc type.
    append EDIDD.
    I'm planning to use INBOUND IDOC Process function module to create these idocs.
    For performance reasons do you want me to call this FM twice or only once for both ( by appending EDIDD both debmas and orders records ).
    Please advise.
    Meghna

  • How to enable IDOC serialization at message type level

    Hi,
    I am trying to enable IDOC serialization at message type and i am unable to achieve the desired results.
    SETTINGS DONE:
    I have done the settings required under SALE trsanaction
    ALE IMG (transaction SALE)
       Model and Implement Business Processes
          Configure Master Data Distribution
              Set-Up Data for Sending and Receiving Serialization
                  Serialization by Message Type
    I have done the settings in both the receiving system and the sending system.
    PROBLEM:
    I am trying to send the Material classification first and then followed by Material class and then try to send the material itself to the other system. Since the serialization is enabled in the system, i was expecting that there should not be any errors.
    But since the material classification IDOC is posted first it throws an error saying the Material Class does not exists. Since the serialization is enabled in the system i was expecting that the system would ensure that it post the Matrial class first and then post the material classification. I mean it would post in the order in which i have defined in the serialization.
    Settings at Partner Profile.
        - I have set the trigger in background for all the message types except the SERDAT message type which is set trigger immediately.
    Any idea what i am missing? Any suggestions on what needs to be done to ensure that the idoc is posted in serialization?
    Edited by: Workflow  learner on Jun 4, 2008 1:21 PM

    Hi,
    Create a custom transaction for PO Print & make the necessary changes as per your requirement  In the custom program which you attach to the custom transaction you can put a validation to display the price based on user ID or some other parameters.
    Thanks & Regards,

  • Inbound Idoc for own Message type

    Dear All,
    I have created a message type for outbound and sent data to the Java System.But when distributing in BD64 inbound parameters are not getting created.
    For inbound idoc if i am creating a new message type,How i can get data from external server and commit it in database.
    We have to write any program as we do for outbound?
    Another issue outbound idoc is in waiting status i have to process it in BD87.How i can sent it immediately and in partner profile, distributing in module view BD64 i have given Transfer IDoc Immediately.
    PLZ reply ASAP.
    Thanks & Regards,
    Arun.

    Dear rhea,
    I want to receive the IDOC data for message type WPUUMS from a java server. Currently i am working on sample values for segments
    E1WPU01
    E1WPU02
    E1WPU03
    E1WPU04
    E1WPU05
    E1WXX01
    I am facing problems in passing the correct values .
    Its throwing a error message status 51.(Application document not posted) IDoc not fully processed.
    can you help me with some dummy data for all the fields in the above segments.
    reply ASAP
    regards
    arun

  • IDOC question on Message type and Basic Type - Partner Profile

    Hi all,
    I am wonder if I can post any IDoc question in this right forum/module. If not please direct me to the right forum/module. I am a newbie in IDOC setup.
    My question is about the setup of Partner Profile creation (WE20).
    When creating a new partner, for example with partner type LI, I notice there is outbound parameter and inbound parameter.
    Questions:
    1 u2013 It makes sense to have only one message type record appear in EITHER one of these two tables.  I notice that some partner in my system has message type record exist on both the inbound and outbound parameters table, why system allows? What is the business rational?
    2 u2013 May I have a list of standard SAPu2019s Message Type object of its usage description, and its allowable Basic Type (ie. IDOC TYPE). Basically a website to describe their (i.e. Message type and its Basic Type) business usage.
    Thanks.
    tuff

    Tuff,
    Below are my thoughts,
    There is a partner sing partner type LI. This partner in the WE20, has one record (i.e. with Message Type ORDERS) exist in the Outbound Parameter table. This partner also has 4 records (i.w. with Message Type DESADV, INVOIC, MBGMCR, and ORDRSP) exist in the Inbound Parameter table. So my question is what is the business rational behind this kind of setup. Because I am confuse when come to create a partner profile, whether I need to create a message type in Inbound Parameter table or Outbound Parameter table, or I need both.
    OK, so looking at the above example, you have an orders message type(This is for creating an order) in the outbound, this means that you are sending out an IDOC(purchase order for ex) to this partner, so that this partner can create an SO in his system and fulfill your order.
    Now you also, mention that you have other four Message types for the same partner on the inbound, now let us look at the above scenario, you have asked your partner to fulfill the order, i guess you would like to get a confirmation from him/her if the order was created or not in his/her system and how and when is he/she going to fulfill your order requirement. This he/she does by sending an response to your order -  ORDRSP.
    And when the partner is ready to ship your order to you, he/she sends out a Advance Shipping Notice - ASN via the IDOC of message type DESADV.
    Finally and most importantly , he/she will send you the invoice - INVOIC for the order.
    In general, you interact with your partner via Business Docs - Order, Delivery, ASN, Invoice etc, so whatever document come from your partner - ORDRSP, INVOIC etc will be on the inbound profile of the partner. Whatever docs that you send ORDERS, ORDCHG etc etc will be on the outbound profile of the partner.
    2 - Bascially I would like a reference in any website that allow me to choose which message type is best use for my partner profile, so that I don't have to reinvent.
    Well, there is no choice of choosing/best message type for a given requirement - So for sending an Invoice the message type is INVOIC, ORDERS - For order creation, ORDCHG for order change etc. However the IDOC type, is some thing that you can choose, for Ex: ORDERS01 - ORDERS05, these are the IDOC types that are available, so if you are interacting with a partner who are running an old version of SAP and their system has only upto ORDERS02 in their version of SAP then you would use ORDERS02.
    Regards,
    Chen

  • ALE Configuration for PEXR2002 IDoc  and PAYEXT message type sending to XI

    Hi all,
              I need ALE Configuration for PEXR2002(Basic Type) IDoc , it's message type PAYEXT.
    I don't know ALE Configuration for sending data from SAP IDS to SAP XI.????
    I need ALE Configuration doc/pdf??
    Please give me some guidline for this..
    Regards,
    Umesh

    Umesh,
    I was wondering if you have had any luck creating the configuration for PEXR2002 Idoc, PAYEXT message types, and sending the result set to XI. 
    I need to perform the same task within our R3 environment using the FTP protocol in XI to send the file to the Bank to be processed.
    Any help or direction would be great.
    Thanks,
    Dave

  • How to solve the INFREC Idoc failure with message type

    Hi,
    Please let me know how can we solve the INFREC Idoc with the message type" Not possible to set tax code without tax calculation schema"
    Pl suggest me how to tackle this Idoc failure.
    Regards
    Raj

    Hi,
    An\ybody..please suggest.. It is very urgent..
    Regards
    Raj

  • Outbound delivery with Inbound IDOC DELVRY06 with Message type SHPCON

    Hi Friends
    I am trying to pack outbound delivery with Inbound IDOC DELVRY06 with Message type SHPCON.
    But IDOC has error Specification of destination HU missing.
    Could you please help us to resolve the issue to Pack the outbound delivery with the  IDOC.
    Thanks
    SR

    HI Ian Kehoe
    Sorry for delay in reply
    Thanks you very much
    I solved that problem .
    Could you please advice  test data for IDOC  DELVRY06 packing hierarchy (multi level packing) to pack SAP outbound delivery.
    Thanks
    Ravi

  • Idoc generation for message types

    Hi All,
    regarding IDOC generation....
    how do we activate the message type so that every time the application data which is created or changed or deleted generates the idoc and send it to other system. If iam not using Chnage pointers technique then i would not be activating the message type in BD50. In such  case ie if the message type is not present in BD50 list and if change pointers is not used to transfer that message type . How do we genrate the idoc for such message types.
    Thanks
    Avinash

    Hi,
    For ur scenario u need to go for change pointers method only.U have other options like distributing master data and transactional data..But i don't think anything otherthan change pointers is useful.
    Regards,
    Nagaraj

  • 1 request Idocs created for message type MATMAS

    Hi Experts
    I have done necessary config.
    I have attempted BD10 and BD11.
    I have got message that "1 request Idocs created for message type MATMAS"
    But iam unable to find the material in target system.
    Please suggest what need to be done.
    regards
    ramSiva

    Marias,
    And in PI, after having changed the password (why not), have you unlock this user account ? in SU01 of PI, you have a lock button.
    if you did it, and changed also the password, as explained, you have perhaps another (or several) program like a RFC destination which uses another password, and so after some exchanges... with a bad/old password, you have your message "too many...", and then the user is again locked...
    If you change the password in PI, you should change it in all application which uses this user. I hope you have not the same user from ECC to PI, than from a third-party to PI...
    that's why: the use of such technical users have to be referenced in a doc. By this way, if password has to modifiy, we know where we have to update it (mainly in different RFC destination).
    Mickael
    Edited by: Mickael Huchet on Dec 5, 2011 5:33 PM

  • Purchase Order Outbound Idoc issue. Message Type ORDER

    Hi Experts,
    I am having issue with outbound IDoc generated from Purchase Order.(Message Type ORDER and Basic Type ORDERS05)
    Issue is when i create PO idoc Segment  E1EDP01 and field ACTION populates as 001 this works fine.
    Now when made any changes to the purchase order.* PO trigers one more EDI - Idoc. but the ACTION field is stil as 002.*
    Could any tell me how to fix this.
    Cheers...Gopinath.

    Hi,
    Thank you.
    I have found the issue and fixed.
    Below three setting was missing same has been done in Partner Profile now ok.
    Message type u2013 ORDCHG, Processing Code u2013 ME11 and Change flag On.
    Cheers..Gopinath
    Edited by: Gopinath A.R on Oct 8, 2009 3:14 PM

Maybe you are looking for

  • Problem with socket security

    Hi, I'm trying to make socket connection from within air application, but no way. I'm browsing google for almost 2 days, follow all possible solutions, but avidently I dont understund somthing cause I'm not able to do anything. Every time sandbox sec

  • Issue while downloading file in .CSV format

    Hi, I need to download the file in .CSV format. I hade used FM SAP_CONVERT_TO_CSV_FORMAT  and then used GUI_Download. Now when I am opening file which is downloaded, it gives all the data in a single column. If there are 5 fields in my table, the gen

  • Designing Objects for a Warehouse

    While building tables (Dimensional & Staging tables), i added some additional 10 FLEX_FIELDS in every table for future use without altering the tables. Is it a Good Practise in Warehouse environment to have additional flex columns? Any thoughts? Than

  • UserExit / Badi for PA48

    Hi Does anyone know if there is a UserExit or Badi that i can use in order to change "Info Group" (In Pa0000), when executing pa48 ? Thanks Ami

  • Zooming a jpanel containing several jbuttons

    My question is how to zoom a jpanel that contains several jbutton... I am not sure what method to use.... when using a Graphics2D object there seem to be only methods as g.drawString(...) g.drawRectangle(..) etc... I am kind of familiar with AffineTr