RCCLORD Program to send process order

Hi all,
          Please let me know how to use standard SAP program RCCLORD to generate IDOC for sending process order.
Rgds,

Go to Program RCCLORD.
On the selection screen enter your order number, order type etc. and click on execute.
Your IDOC will be generated.
You can check the same by going to Transaction code WE02 or WE05. Run it for current date and your message type to find the generated IDOC.
Hope this is helpful.
Regards,
Sonal.

Similar Messages

  • Program to send Purchase Order SmartForm by e-mail

    Hi,
    I need a program to send my Purchase Order SmartForm by e-mail. With the program I use, the output keeps appearing in my spool list in stead of in SOST... Does anyone have a sample code that I can use?
    I am working in a ECC 6.0 system. Package SMB40 is nog available in this system.
    Thanks!
    Patrick

    Hi Patrick.
    By a simple search on this forum i found this.
    Maybe you can use it
    check this code tutorial on how to send smartform output thru email.
    https://wiki.sdn.sap.com/wiki/display/Snippets/emailsendthroughoutputcontrols
    success., Gr., Frank

  • Program to send purchase orders changes

    Hello all, please can you tell me how can I send changes that I need in R/3 purchase orders to SUS?
    I created a new purchase order for a supplier in R/3 and when I go to SUS system I can´t see it there.
    What can I do?
    Thanks in advance
    Rosa Rodríguez

    Hi Rosa,
    Kindly maintain ORDCHG message type in WE-20 (partner profile settings) on R-3 side.
    Thanks
    Nikhil

  • Error while running Process Order API to import orders - URGENT HELP NEEDED

    Hi all,
    I'm stuck with order import using OE_ORDER_PUB.PROCESS_ORDER api. Wanted to import a simple order in Vision database using the process order api. Figured out the right data to use, inserted into Headers and Lines Iface All tables. When calling the OE_ORDER_PUB.PROCESS_ORDER api, it is throwing this error:
    "Header ID does not exist on this record or does not match ID specified on header record. You require a valid header ID if the operation is Create."
    But when I validate the same record using the CORRECTIONS form in Order Import GUI, the order is successfully validated. Also the order is imported when I click the IMPORT button.
    I understand that HEADER_ID column is not required for creating a new order, but not sure why it is erroring. Here is the data I'm using:
    Insert into oe_headers_iface_all
    (org_id, order_type_id, order_source_id, orig_sys_document_ref, ordered_date, request_date,
    sold_from_org_id, sold_to_org_id, ship_from_org_id, ship_to_org_id, invoice_to_org_id,
    CREATED_BY,CREATION_DATE,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN,OPERATION_CODE)
    values (204, 1430, 1046, '101040', sysdate, sysdate, 204, 1004, 606, 1018, 1017, 0, sysdate, 0, sysdate, 0, 'CREATE');
    Insert into oe_lines_iface_all
    ("ORDER_SOURCE_ID","ORIG_SYS_DOCUMENT_REF","ORIG_SYS_LINE_REF","ORIG_SYS_SHIPMENT_REF","ORG_ID","INVENTORY_ITEM","LINE_TYPE_ID",request_date,"SCHEDULE_DATE","DELIVERY_LEAD_TIME","ORDERED_QUANTITY","ORDER_QUANTITY_UOM",sold_from_org_id, sold_to_org_id, ship_from_org_id, ship_to_org_id, invoice_to_org_id,"UNIT_SELLING_PRICE","CREATED_BY","CREATION_DATE","LAST_UPDATED_BY","LAST_UPDATE_DATE","LAST_UPDATE_LOGIN","OPERATION_CODE")
    values
    (1046,'101040', '1', '1', 204, 'AS72111', 1427, sysdate, sysdate+1, 0, 10, 'Ea' ,204, 1004, 606, 1018, 1017,100,0,sysdate,0,sysdate,0,'CREATE');
    Any help is appreciated.
    FYI - this is a 11.5.10.2 version installed on Windows 2003 server.
    Thanks in advance.
    Jags

    I might be late in replying, but hope it might help.
    From your query it seems you are inserting records into interface tables and then calling process order API( probably from some PL/SQL block).
    This is where I am confused, because I hope you understand, that interface tables are for use with Order Import concurrent Program, and for Process ORder API, you need to provide the data as parameter. The api has, header record type and line table type as parameters. So you need to assign correct data to these variables and pass them as parameter when you are calling Process Order API.
    If you are doing the same thing, then post the exact pl/SQL code and error message from the API. That might help diagnose the issue.
    Regards,
    Nitin Darji

  • 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.

  • Creating Process Orders using batch processing

    Hi :
    I am creating process orders automatically by using batch processing.I have a custom T.code and custom table.The batch program should be build based on custom table.From where will i get the data for batch processing? from custom table? if so how can i prepare a file for that.
    I have to submit this batch program to the custom T.Code so that it creates Process Orders automatically.
    Can u guide how to procede in this.
    Thx.
    Raghu

    Hi Raghu,
      What i think is u have a custom program which creates Process Orders using some user data. this user data is posted to a custom tabel.
    Now if i am right then u want to create a batch program around this custom program so as to achieve benifits of batch processing.
    yopu can check these links to better understand how to create a BDCprogram.
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sappoint.com/abap/bdcconcept.pdf
    http://www.sappoint.com/abap/bdcconcept.pdf
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/fa/097022543b11d1898e0000e8322d00/frameset.htm
    http://www.planetsap.com/bdc_main_page.htm
    http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_gci1068429_tax293481,00.html
    Hope this helps.
    Award rewar points if its useful.

  • 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.

  • Send Mail When Saving The Process Order

    Dear Experts,
    I want to send a Mail with some details whenever we Create & Save a new Process Order in COR1.
    I have written my code at the below location where i have all the required data stored in the IT'S.
    Enhancement - PPCO0001
    FM - EXIT_SAPLCOBT_001
    Include - zxco1u01
    I have the below code to send the Mail in the include.
    Send the document
        call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          exporting
            document_data              = wa_doc_chng
            put_in_outbox              = 'X'
            commit_work                = ""
          tables
            packing_list               = it_objpack
            contents_txt               = it_objtxt
            receivers                  = it_reclist
          exceptions
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            others                     = 8.
        if sy-subrc = 0.
      To refresh SAP Work Office so that mail can be recieved immediataly.
          submit rsconn01 with mode = 'INT'
                          with output = ''
                           and return.
        else.
          message 'Problem in sending Email.' type 'I'.
        endif.              "  End of sy-subrc
    Here my exporting parameter "commit_work" is blank, i have not passed "X" in it.
    When i pass "X" in this, it gives me a dump as below.
    Short text
        Invalid COMMIT WORK in a COMMIT WORK or ROLLBACK WORK.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLSOI1" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        The call of a COMMIT WORK in a FORM, that will not be executed until
        the commit or rollback point of the caller using the variant
        PERFORM ... ON COMMIT or PERFORM ... ON ROLLBACK is not permitted.
    Trigger Location of Runtime Error
        Program                                 SAPLSOI1
        Include                                 LSOI1U32
        Row                                     154
        Module type                             (FUNCTION)
        Module Name                             SO_DOCUMENT_SEND_API1
    When i take out "X" from "commit_work", it does not send mail and also the transaction does not give any Dump.
    Can you please help out me with this?
    Thanks,
    Praveen

    Hi Antony,
    When i write the below code in FM = EXIT_SAPLCOBT_001 and include = zxco1u01, it does not work for sending the mail.
    Mail Data.
    types: begin of ty_mail,
            tcode type zmail-tcode,
            email type zmail-email,
            end of ty_mail.
    IT Creation.
    data:  it_mail type standard table of ty_mail.
    WA Creation.
    data:  wa_mail type ty_mail.
    Email Related Internal Tables.
    data:  it_reclist        type standard table of somlreci1,     "Recipients
            it_objpack        type standard table of sopcklsti1,
            it_objhead        type standard table of solisti1,
            it_objtxt         type standard table of solisti1 initial size 0 with header line,      "Body of EMail
            it_objbin         type standard table of solisti1,      "Attachment of EMail
            it_contents_hex   like standard table of solix,
            it_objbin1        type standard table of solisti1,      "Attachment of EMail
            it_contents_hex1  like standard table of solix.
    Email Related Work Area.
    data:  wa_doc_chng       type sodocchgi1.     "attributes of document to send
    data:  l_reclist               like line of it_reclist,
            l_objpack               like line of it_objpack,
            l_tab_lines             type i.
    data:  lv_answer   type string,
            w_msg1(100) type c,
            w_gamng     type string.
    select tcode email from zmail into table it_mail
            where tcode = 'ZQA15'.
       refresh it_objtxt[].
       it_objtxt = '-----------------------------------------------------------------------------------------------------'.
       append it_objtxt.
       concatenate 'Order Number - '  header_table-aufnr into it_objtxt separated by space.
       append it_objtxt.
       concatenate 'Plant - '  header_table-werks into it_objtxt separated by space.
       append it_objtxt.
       concatenate 'Material No. - '  position_table-matnr into it_objtxt separated by space.
       append it_objtxt.
       concatenate 'Material Description - '  header_table-ktext into it_objtxt separated by space.
       append it_objtxt.
       concatenate 'Batch No. - '  position_table-charg into it_objtxt separated by space.
       append it_objtxt.
       w_gamng = header_table-gamng.
       concatenate 'Batch Size - '  w_gamng into it_objtxt separated by space.
       append it_objtxt.
       concatenate 'MFG. Date - '  position_table-verid into it_objtxt separated by space.
       refresh it_reclist[].
       loop at it_mail into wa_mail.
         clear  l_reclist.
         l_reclist-receiver    = wa_mail-email.
         l_reclist-express     = 'X'.
         l_reclist-rec_type    = 'U'.
         l_reclist-no_forward  = 'X'.
         append l_reclist to it_reclist.
         clear wa_mail.
       endloop.
    Fill the document data.
       wa_doc_chng-doc_size = 1.
    Populate the subject/generic message attributes
       wa_doc_chng-obj_langu = sy-langu.
       wa_doc_chng-obj_name  = 'PO DETAILS'.
       wa_doc_chng-obj_descr = 'PO Details To QC'.
       wa_doc_chng-sensitivty = 'F'.          "  Send mail as a confidential
       wa_doc_chng-no_change  = 'X'.
    Describe the body of the message
       if it_objpack is initial.
         l_objpack-transf_bin = space.
         l_objpack-head_start = 1.
         l_objpack-head_num   = 1.
         l_objpack-body_start = 1.
         describe table it_objtxt lines l_objpack-body_num.
         l_objpack-doc_type   = 'RAW'.
         append l_objpack to it_objpack.
         clear  l_objpack.
         clear l_tab_lines.
       endif.
    Send the document
       call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         exporting
           document_data              = wa_doc_chng
           put_in_outbox              = 'X'
           commit_work                = ''
         tables
           packing_list               = it_objpack
           contents_txt               = it_objtxt
           receivers                  = it_reclist
         exceptions
           too_many_receivers         = 1
           document_not_sent          = 2
           document_type_not_exist    = 3
           operation_no_authorization = 4
           parameter_error            = 5
           x_error                    = 6
           enqueue_error              = 7
           others                     = 8.
       if sy-subrc = 0.
      To refresh SAP Work Office so that mail can be recieved immediataly.
         submit rsconn01 with mode = 'INT'
                         with output = ''
                          and return.
       else.
         message 'Problem in sending Email.' type 'I'.
       endif.              "  End of sy-subrc
    endif.                "  End of lw_answer
    But when i write the same above code in FM = EXIT_SAPLCOZV_001 and include = zxco1u06, it does work fine.
    I am not able to understand why it works at one place and does not at the other?
    Thanks,
    Praveen

  • 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'.                        "

  • Program For Process Order

    I am creating new lay out for process order in smart forms.for that we need a standard program where we get the standard program
    Regards
    manoj

    check table TNAPR for KSCHL = NEU.
    /edit LD00 is jackshit this is delivery note.
    Edited by: Florian Kemmer on Apr 21, 2009 12:25 PM

  • 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

  • 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!

  • Process Order Creation/Modification 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 (sy-oncom = P) ).
    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_

    Yes, it is just it, the customer wants the process order sended inmediatly to a external system, and I your solution has been evaluated and they don't want it. I've just solved it yesterday last hour with a "similar" bad solution but it was approved. We have coppied the standard function CLOI_MASTERIDOC_CREATE_LOIPRO and all the commits has been removed. It works perfect and we assume the danger of standard code copy.
    Many thanks!
    I will not close the post waiting if there is a better solution.

  • Message Type - Process orders

    Hi Gurus,
    What is the message type and Idoc type for the process order? I found the message type LOIPRO for the production order, but didn't found for process order.
    My requirement is to send the process order details to a logical system when the process order is created / released or changed.
    Thanks
    nagarajan

    Hi      Nagarajan Ramudu         
    Program: RCCLORD-Generate Production Order IDocs
    Fm: CLOI_MASTERIDOC_CREATE_LOIPRO
    Message Type         LOIPRO (Production Order)
    Process code ABI_AIDN_IN (inbound)
    check below useful link:
    Re: Process Orders, send idoc (LOIPRO) while creation/modification(COR1+BADI)
    With above info you can resolve the your issue
    Thanks
    Ramesh

  • 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

Maybe you are looking for