Idoc reprocessing in Custom program

I have a custom program which displays the IDoc data for the message type = ZSTLSP in the ALV format.
Requiremt is that I shall select a record and change one of the coulmn contents . A button 'Reprocess' will be
made available , when clicked it needs to reprocess the Idoc . The reprocessed idoc will be strored with the new values entered
and the original idoc will be stored with status 70.
Kindly let me know how to reporcess the IDoc in the custom program.
p.s.:  Function module IDOC_INPUT does also reprocess ..but it does not disoplays the updated status.

Hello,
You may call standard program RBDAPP01 to reprocess the IDOCs using SUBMIT statement. Pass the IDOC Number, Message type etc. while submitting the program.
Thanks,
Venu

Similar Messages

  • INBOUND IDOC REPROCESSING IN CUSTOM PROGRAM

    Hello,
    I have a custom program which displays the INBOUND IDoc data for the message type = ZSTLSP in the ALV format.
    Requiremt is that I shall select a record and change one of the coulmn contents . A button 'Reprocess' will be
    made available , when clicked it needs to reprocess the Idoc . The reprocessed idoc will be strored with the new values entered
    and the original idoc will be stored with status 70.
    Kindly let me know how to reporcess the IDoc in the custom program.
    Note that If I try to cakk l standard program RBDAPP01 to reprocess the IDOCs using SUBMIT statement. We can pass the IDOC Number, Message type etc. while submitting the program but CANNNT pass the changed SDATA field.
    Thanks in Advance!!
    Senthil

    I am able to change the value using FM IDOC_INPUT , but the changed values is not updateing in the databse.
    Maybe I need to do commit. kindly let me know how to do commit in this scenario.
    Senthil

  • IDOC generation from ABAP program

    Hi
    I have to object in which I have to Z program which will generate the idoc and pass it to PI system. Can anyone guide me in how to generate IDOC through ABAP custom program. Just need a little guidance in how to create IDOC from an ABAP report.
    Any help would be greatly acknowledged.
    Thanks!!

    Hi I tried to use the program as suggested by Buddhika and Glen, but found error over the statement below:
    i_data-sdata = header_segment_data.
    Highlighted below in code snap. These two fields are not mutually convertible.
    Any suggestions on this.

  • Re-process SAME IDOC no in a custome program without it generation another

    Hi
    I have an incomming idoc which depending on some condition i i put the idoc in staus 52 so that another program will be able to re-process is later on.  I put the idoc in a custom table.
    A custom program will come and pick the idoc in the custom table to be reprocess .  what FM can i use to make the custom program reprocess the same idoc with generation a new one
    thank a lot for helping

    Can't you use   BD87 to do it...! or use IDOC_INPUT and in passing parameter UNPROCESSED_IDOCS give yor idoc numbers you want to reporcess...!
    hope it helps
    Edited by: Anup Deshmukh on Mar 4, 2010 7:34 AM

  • Create idocs from custom program

    hi
    i have a custom program and will have custome segements.
    so i can fill both control and data records.from here i need to generate idoc..any FM's to do this??
    appreciate any help.
    thanks
    siva

    Hi Siva ,
    There is no FM to fill segments data , you need to write your own logic fill IDOC data ,
    then use 'MASTER_IDOC_DISTRIBUTE' to send IDOC.
    check this sample code :
    DATA :idoc_line       TYPE edidd,
          idoc_data       TYPE STANDARD TABLE OF edidd.
      x_a00-transaction_type  = c_trans_type_a00.
      x_a00-organisation_id   = x_externalid.
      x_a00-file_type         = 'XXX'.
      x_a00-creation_date     = sy-datum.
      x_a00-creation_time     = sy-uzeit.
      x_a00-generation_number = ''.
      x_a00-int_file_type     = 'XXX'.
      idoc_line-sdata  = x_a00.
      idoc_line-segnam = 'ZX_A00'.
      cnt_no = cnt_no + 1.
      idoc_line-segnum = cnt_no.
      APPEND idoc_line TO idoc_data.
    DATA : x_idoc_control like edidc.
    x_idoc_control-mestyp = x_mestyp.         "Message type
    x_idoc_control-idoctp = x_idoctp.         "Basis Idoc Type
    x_idoc_control-cimtyp = space.            "Customer extension
    x_idoc_control-mescod = space.
    x_idoc_control-sndpfc = space.
    x_idoc_control-sndprn = x_sender_no.
    x_idoc_control-sndprt = x_sender_type.
    x_idoc_control-rcvpfc = space.                 "Partner Role Receiv.
    x_idoc_control-rcvprn = x_distributor.         "Partner Nr.
    x_idoc_control-rcvprt = x_sp_type.            "Partner Type Receiv.
    Regards
    Appana

  • Trigger IDOC_OUTPUT_ORDRS using custom program.

    Hello.
    I have a requirement to send an order response (ORDERS05) IDoc by calling FM IDOC_OUTPUT_ORDRS using a custom program.  Wanted to know if anyone had suggestions on the best approach.  We are using much of the native mapping and adding a few segments (which I would handle updating in the customer exits).
    My biggest question is how to setup the call to IDOC_OUTPUT_ORDRS.  I think I need to simulate the NAST table entry.  Is that the recommended approach?  Any tips or hints would be appreciated.
    Thanks,
    Cal
    Edited by: Cal on Feb 3, 2009 7:07 PM

    Actually condition technique based on which output determination works - is designed for exactly what you are asking - triggering the output type under certain conditions.
    You can create ouput condition records with key fields that represent your business conditions: for example certain sales org, distrib channel, certain sales order type can only trigger the output. You can make it as finer as you want (like even including sold-to as a criteria), like you can include any field that appears in the sales document as a criteria to trigger the idoc.
    The tables that store condition records - condition tables - are custom created with your business field combination that you want to base the triggering upon.
    Goto the IMG path:
    IMG -> SD -> Basic functions -> Output control -> Output determination -> Maintain output determination for sales documents.
    1. A o/p determination procedure is assigned to sales document type
    2. A o/p determination procedure comprise a list of output types, which are checked sequentially by the system
    3. Custom condition tables with new business criteria can be assigned to new or existing access sequence
    4. Access sequence is attached to output type
    How the system triggers a particular output type during application document processing, say sales order processing:
    1. From the sales document type, the o/p determination procedure is determined
    2. The system then checks the output types inside the procedure one by one
    3. Say at output type 1, the system checks to see what access sequence it has
    4. The access sequence comprises of 1 or more condition tables.
    5. The system then checks each condition table, by comparing the key fields of the condition table with the correpsonding sales document fields - like comparing sales org, documen type in the condition record with what the sales document has. If every thing matches, the output type is triggered.
    I have just simplified the whole o/p determination. There are several other features which are controlle at o/p determination, procedure, output type and access sequence levels. Spend some time one these, it is a neat, flexible and future proof concept. You will never regret! )

  • Consolidating IDocs generated through RFFOEDI1 program

    Dear experts,
    We are trying to use IDocs to send payment information to our bank for further processing. Currently, the program RFFOEDI1 generates individual Idocs for each payment i.e. for each vendor.
    However, we would like to see one IDoc for each payment method which in turn should have the payment details of each vendor.
    Does anyone know how we can achieve this? OR is it even possible.
    Thanks for your help.
    Regards,
    Vishal Thakur

    Hi,
    Payment IDOC is generated at vendor level. You have the option to generate the payment IDOC at invoice level, but not possible for aggregating at payment method level for all vendors.
    You can instead create your own custom program, where you can read the data from various IDOC and can aggregrate into single IDOC. But standard does not support it.
    Regards,
    Gaurav

  • File to IDOC scenario: Create customer master and then return customer no

    Hi all.
    I have a scenario to pass xml file to sap XI to generate IDOC to create customer master in SAP. My problem is that I need to return customer no. created in SAP from IDOC. Is there any solution to do this? Someone told me that BPM could be used for doing this but I don't know the steps.I have no problem in create customer master in SAP. My only problem is how to return customer no.  Any help would be appreciate. Thank you.
    Best Regards,
    Pavin

    >>u can use synch-Asynch bridge using BPM
    This can not be done via sync-async bridge.There are 2 reasons for this
    1.He has file adapter as sender and that doesn't support synchronous scenarios.
    2.He has standard IDOC as receiver.there is no way you can fetch customer# from IDOC without writing a custom program,Thats why i said he need to either use RFC/Proxy or do some custom development.
    Thanx
    Aamir

  • Trigger special function output type through a custom program

    Hi,
    I have to trigger the special function output type from a custom program.
    This custom program contains a BAPI and the output parameters of this BAPI are required as input to the second BAPI which is contained in the form routine of the special function output type.
    I am not able to understand how to trigger the special function as I dont know how the nast-objky will be updated
    and how the BAPI parameters will be passed.
    Is this has to be done through a Idoc
    Can anyone guide me on how to handle the above functionality.

    Hello,
    I am not able to understand your requirement completely...
    agree with above post....addition-
    1. Transport medium would be '8 - Special Function' where one program would fire and that can be used for further processing.
    2. If condition record are maintained and it is matching with parameters then output type with all transport medium would be called
    Thanks

  • Tracking IDOC reprocessing

    I have developed a File to IDOC interface in PI/XI. The file I pick up will contain a list of invoices from a vendor system ,
    that I convert into ACLPAY IDOCs and post invoices.
    When the IDOCs are posted into our SAP  system some of the IDOCs fail and some of them are successful.
    At the end of a business day the user will execute txn we05 to see the status of the IDOCs that came in for that day.
    If any of the IDOCs failed the user would use WE19 to correct the data and reprocess the IDOC again.
    The problem is the old IDOC that came in still has a error status and the new IDOC created by modifying the old IDOC doesnu2019t have any reference to the older IDOC.
    Is there a way to see if and IDOC was created by reprocessing an already existing IDOC?
    Or is there a better method to handle my scenario?
    Thanks
    Siva

    Hi siva,
    there are different programs and t-codes available to reprocess the error Idocs
    with out creating new idocs.
    Program RBDMANI2 for status 51 & 52
    Program RBDAPP01 for status 64 ,66
    Program RBDAGAIE for status 32 and 69 (Edited IDocs)
    Program RBDSYNER for status 26
    BALE - ALE Distribution Administration
    WE05 - IDoc overview
    BD87 - Inbound IDoc reprocessing
    BD88 - Outbound IDoc reprocessing
    BDM2 - IDoc Trace
    BDM7 - IDoc Audit Analysis
    BD21 - Create IDocs from change pointers
    SM58 - Schedule RFC Failures
    Basic config for Distributed data:
    BD64: Maintain a Distributed Model
    BD82: Generate Partner Profile
    BD64: Distribute the distribution Model
    Programs
    RBDMIDOC - Creating IDoc Type from Change Pointers
    RSEOUT00 - Process all selected IDocs (EDI)
    RBDAPP01 - Inbound Processing of IDocs Ready for Transfer
    RSARFCEX - Execute Calls Not Yet Executed
    RBDMOIND - Status Conversion with Successful tRFC Execution
    RBDMANIN - Start error handling for non-posted IDocs
    RBDSTATE - Send Audit Confirmations
    FOr testing you can use WE19.
    Program RSEOUT00 for status 30
    re-process IDocs failing in 29 status, use program RBDAGAIN.
    transactions WEINBQUEUE and WEOUTQUEUE to control the individual queues
    Prabhudas

  • IDOC reprocessing

    I have a File to IDOC interface. The file I pick up will contain a list of invoices from a vendor system ,
    that I convert into ACLPAY IDOCs and post invoices.
    When the IDOCs are posted into our SAP  some of the IDOCs fail and some of them are successful.
    At the end of a business day the user will execute txn we05 to see the status of the IDOCs that came in for that day.
    If any of the IDOCs failed the user would use WE19 to correct the data and reprocess the IDOC again.
    The problem is the old IDOC that came in still has a error status and the new IDOC created by modifying the old IDOC doesnu2019t have any reference to the older IDOC.
    Is there a way to see if and IDOC was created by reprocessing an already existing IDOC?
    Or is there a better method to handle my scenario?
    Thanks
    Siva

    Hi All,
    Thanks for all the responses.
    I'm using We02 for such a long time , didnt know i could edit the IDOC directly there.. thanks a lot!
    I used this method to change and reprocess the IDOC and it worked great!
    I also think the Workflow approach is a neat one.
    Rajesh,
    Could you give me links to any such scenarios?
    I will explain the scenario in detail.
    I'm both the XI and ABAP developer.
    I am able to pick invoices and submit them as ACLPAY IDOCs. The inbound process code for ACLPAY IDoc is a custom one.
    I do a BDC call transaction which parks the invoice in FV60.
    If the parking fails due to some reason i plan to trigger a workflow.
    Is there an example which i could use for my scenario?

  • Auto Trigger DEBMAS IDoc for a customer change

    Hello Experts,
    I have a business case where in I need to auto trigger the DEBMAS IDoc when ever customer details are changed. What is that I need to do in SAP to trigger the IDoc automatically.
    Please help
    Thanks in Advance,
    Suma

    Hello Suma,
    Please follow this.....
    Automatic generation of IDOC when we change the MASTER DATA:
    Change Pointers:
    Change documents are working based on change document technique which
    tracks changes made to the key documents (Material Master, Customer Master,
    Vendor Master.Etc) in SAP.
    Changes made to the keydocuments are recorded in the change document Header
    table i.e. CDHDR and Item table CDPOS, Additional change pointers are written
    in the BDCP and BDCPS tables.
    Change pointers technique is used to initiate the outbound process automatically
    when master data is created or changed.
    A standard program RBDMIDOC is sechuled to run on periodic basis to evaluate the change pointers for a message type and starts the ALE process for distributing the Masterdata to the appropriate destination.
    'Object' is collection of fields of different database tables. T.code for creating an object
    is SCDO.
    Configuration for Change Pointers:
    1. BD61 Active change pointers generally
    - Check the checkbox "Change pointers activated -generally"
    - Save it
    2. BD50 Active change pointers for Message Type
    Message Type Active
    DEBMAS Check the check box
    3. BD52 Maintain Table Views
    Enter the Message type "DEBMAS" and press enter.
    For example
    OBJECT TABLE NAME FIELD NAME
    DEBI KNA1 NAME1
    5. WE21 Port
    6. WE20 Partner Profile
    7. BD64 Distribution Model
    Use RBDMIDOC program.for executing this program we need to give message type like
    MATMAS or
    DEBMAS or
    CREMAS
    depending on your requirement.
    go to SE38 tcode Maintain variants then use the same back in scheduling.
    STEPS IN BACKGROUND SCHEDULING:
    Use tcode SM36
    Click Job wizard in the button set
    Click Continue
    Enter Job name and press continue
    Select ABAP program and press Continue
    enter Program name and press continue
    and again press Continue
    set Schedule type immediately and continue
    Select periodic job checkbox, press continue
    Select none of the above and click on other periods – give one-minute and then press create
    Press continue and then press complete.
    Hope this resolves your issue....
    please reward if helpful...
    Thanks,
    Sree

  • Logical database sdf in custom program not triggering selection screen?

    I added logical Database SDF (screen 905) to a custom program - but the selection screen is not getting triggered.
    Do I have to associate these somewhere?
    Thanks,
    Ven

    HI,
    Declare this statement after the Report Statement in the program.
    TABLES : SKA1, SKB1.
    You will get the selection screen now.

  • Re: Payment order Reversal using custom program

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

    Hello Experts,
    The requirement is when we void any chek the corresponding documents (payment request ,payment order and accounting document) related to the check has to be reversed in Fi Tresury.
    Reversal of the payment reqest and the accounting document in my program is fine but payment order reversal is not happening in the program.
    I am able to reverse it by using standard transaction ihc02.
    In the program  i have used the same function module IHC_BCA_PAYM_ITEM_REVERSE as used in the standard program and passing the same values what we are passing in the standard transaction but reversal of  the payment order was not happening using that functiona module.
    Please suggest me what to do with this requirement and how to reverse the payment order using the custom program.
    Thanks and regards
    pavan

  • POSTING G/L account documents through custom program

    While posting the documents through the tcode fb01,
    when I tick at PA segement button ASSIGNMENT TO
    PROFITABILITY SEGMENT screen opens, DERIVATION
    BUTTON is activated/enabled . But through a custom program when session is
    processed and when PA segement button is ticked on
    ASSIGNMENT TO PROFITABILITY SEGMENT screen, DERIVATION BUTTON is not visible. I can only see Continue, Next Page, Delete Assignment, and Cancel buttons. Where do I need to check this problem?

    Hi,
    Nope, in standard SAP you can not do that.
    You would need to develop your custom program for it.
    Regards,
    SDNer

Maybe you are looking for