Trigger idoc for returns document using transaction O3O_RT01, O3O_RT02.

Hi All,
There is an requirement to trigger an IDOC with the details of returns documents.
I am building a custom IDOC for this purpose. But the problem is i need to trigger the IDOC when i click on 'RETURN' button in the transactions O3O_RT01, O3O_RT02.
Kdly help in as to is there any BADI or exit or and event available  to trigger a code when i click on that button, else  let me know how to go about it.

Similar Messages

  • BAPI for clearing documents -Using Transaction F-44

    Hi all,
       Is there any BAPI which can be used for clearing docs using transaction F-44.
    I have already seen threads on SDN for the same but couldn't find any BAPI.
    Regards
    Taranam

    I have the same question as you ,  please tell me if you had known , thanks !
    Edited by: HB WANG on Mar 4, 2008 4:08 PM

  • Function Module to Generate Outbound IDOC for Sales Documents

    Hello Experts,
    Can someone please help me, I need to know which function module to use in order to generate the outbound IDOC for sales documents.  Some of the fm's I have come across are the following:
    IDOC_OUTPUT_ORDERS, but actually for Purchase Orders
    IDOC_OUTPUT_ORDRSP, but did not generate any IDocs for my sample Sales Order.
    Points will be given for any help provided.
    Thanks in advance.

    Hi Nagaraj,
    I tried using the IDOC_OUTPUT_ORDERS but I keep getting an error that the Purchase Order <xxx> does not exist, even though the document I tried is a sales order.  For everyone's reference here is the code:
    form process_data.
      DATA v_idoc       TYPE edidc-docnum.
      DATA i_edidd      TYPE TABLE OF edidd.
      DATA wa_idoc_ctrl TYPE edidc.
      LOOP AT i_nast INTO wa_nast.
        CLEAR i_msgs[].
        CALL FUNCTION 'WFMC_PROTOCOL_GET'
          EXPORTING
            cps_nast        = wa_nast
          tables
            messages        = i_msgs
         EXCEPTIONS
           NOT_FOUND       = 1
           OTHERS          = 2.
        LOOP AT i_msgs INTO wa_msgs WHERE arbgb EQ 'E0'.
    *--- Check first if there is an IDOC
          IF wa_msgs-msgv1 IS INITIAL.
            CONTINUE.
          ENDIF.
          v_idoc = wa_msgs-msgv1.
          CLEAR i_edidd[].
          CLEAR wa_idoc_ctrl.
          CALL FUNCTION 'IDOC_READ_COMPLETELY'
            EXPORTING
              document_number                = v_idoc
            IMPORTING
              IDOC_CONTROL                   = wa_idoc_ctrl
    *         NUMBER_OF_DATA_RECORDS         =
    *         NUMBER_OF_STATUS_RECORDS       =
            TABLES
    *         INT_EDIDS                      =
              INT_EDIDD                      = i_edidd
            EXCEPTIONS
    *         DOCUMENT_NOT_EXIST             = 1
    *         DOCUMENT_NUMBER_INVALID        = 2
              OTHERS                         = 3.
          CALL FUNCTION 'IDOC_OUTPUT_ORDERS'
            EXPORTING
              object                              = wa_nast
              control_record_in                   = wa_idoc_ctrl
    *       IMPORTING
    *         OBJECT_TYPE                         =
    *         CONTROL_RECORD_OUT                  =
            tables
              int_edidd                           = i_edidd
    *       EXCEPTIONS
    *         ERROR_MESSAGE_RECEIVED              = 1
    *         DATA_NOT_RELEVANT_FOR_SENDING       = 2
    *         OTHERS                              = 3
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
          COMMIT WORK.
        ENDLOOP.
      ENDLOOP.

  • Program name to post document using transaction KB33N.

    Could you tell me the  Program name to post FI document using transaction KB33N.
    Also before document is posted it should appear in SM35
    Edited by: mukesh mahajan on Oct 20, 2009 12:39 PM

    The program name of the T-code is not required.
    I require a standard program which is used to post document in KB33N with data from input file from presentation or application server.
    example is like program RFBIBL00 is used to post document in FB01, FBS1 etc.
    Could any one suggest the name of program for KB33N posting.

  • Creation of new numbering interval for FI documents - FBN1 transaction

    Dear Experts, good day!
    When trying to create new numbering intervals for FI documents (FBN1 transaction), inserting the needed entries to a  customizing request (only those new entries, related to future years) and release it to the Quality environment, we have noted the new entries didn't get into the destination system.
    Have someone seen this before? Would you know why does that happen? How can we transfer the NRIV table contents to the other environments (Quality and Production)?
    Thanks a lot,
    Daniel.

    To copy number ranges to a new year you do with the transaction OBH2.
    When you want to transport number ranges you ask for problems. Only for a new implementation you can do it but not when there are existing number ranges with postings for that company

  • Need BAPI to update posting date for parked documents in transaction FBV2?

    Hi All,
    I am retrieving records from table VBKPF and I have to update the posting date for parked documents in transaction FBV2.
    I am doing it with BDC , working fine in foreground, but it is not workung fine in back ground.I want to do this with bapi.
    Can any one suggest me corrct BAPI?
    TYPES : BEGIN OF It_vbkpf,
             bukrs LIKE vbkpf-bukrs,            "Company Code
             belnr LIKE vbkpf-belnr,            "document number
             gjahr LIKE vbkpf-gjahr ,           "Fiscal year
             budat LIKE vbkpf-budat,            "Posting date
             bldat LIKE vbkpf-bldat,            "Document date
             blart LIKE vbkpf-blart,            "Document type
             xblnr LIKE vbkpf-xblnr,            "Reference
             tcode LIKE vbkpf-tcode,            "Transaction Code
             bktxt LIKE vbkpf-bktxt,            "Document header text
             usnam LIKE vbkpf-usnam,            "User Name
             xwffr LIKE vbkpf-xwffr,            "Release necessary
             xprfg LIKE vbkpf-xprfg,            "Document complete
             xfrge LIKE vbkpf-xfrge,            "Release takes place
            END  OF it_vbkpf.
    Thanks,
    Suresh.

    Hi ,
    Thanks for your response.
    PRELIMINARY_POSTING_UPDATE seems working good,But my requirement here , to update the posting date with last working day . how can i do this?
    thanks,
    Suresh.

  • IDOC for Accounting documents

    HI All,
    Can you help me on this issue?
    I have one requirement after create billing documents and Accounting documents ,system should create IDOC for those documents to  transfer  to other system.
    So can you guide me how can be this configuration
    Ishikesh

    Hello,
    You check the possibility of an alternative of this. I believe your requirement is to send the accounting information to a third party system for further processing.
    Get the mapping details of the third party system and decide the IDOC type and IDOC segments. Get the help of a technical person, he will guide you propoerly.
    Regards,
    SAM

  • Trigger Idoc for MIGO Goods Receipt

    Hi,
    We have an output type created and configured for ALE (dist model). The output type is also enabled with 'Partner Indep-output' in NACE. The program that is attached to it is 'RSNASTED' and form routine 'ALE_PROCESSING' yet while processing we get an error 'incorrect partner type' in output log once the GR is processed. Would like to know how to overcome this issue and the config fix to be in place to trigger idoc for a GR via MIGO

    option 1. go for special f/n in the output type config and need to write a program to create and post the idoc
    option 2. copy rsnasted and havae the required changes there which is then set in the output processing routines (NACE)
    option3. drop the requirement

  • Is there any BAPI exists for parking document (FBV1 transaction)

    Hi experts,
    Is there any BAPI for parking document (FBV1 transaction).
    Thanks in advance,
    Viven

    Hi,
    <b>BAPI_INCOMINGINVOICE_PARK</b>...is one of the BAPI for parking the incoming invoice.
    Sushil.

  • Event Used For Return Processing Through Transaction Code-FP09

    Hi Experts,
    I am facing the following problem in FP09:- After creating a return lot, when i provide return reason code for returning payments, event 1073 is not getting triggered.
    So, can you please provide the event that will be used for return processing after supplying the reason code for return.
    Else, could you please tell me the event which will be triggered by transaction FP09... so that i will catch return reason code in its parameter.
    Regards,
    Sumit

    Hi Experts,
    Thanks for your valuable replies .
    But my exact requirement is like:- i need to first check the flag for "Inform Accounting Clerk" in SPRO configuration :customizing (financial accounting)-> contract account receivables and payable -> business transactions -> returns -> configure reason codes.
    Field for this flag check is V_TFK045E-BSNTE for the Reason Code-02 , now there is dependency mentioned in SAP like "You can only use this option if event 1073 has a function module defined".
    After attaching my Z-function module in FQEVENTS , when i run transaction FP09, it doesn't stop at the set breakpoint of my function module, so what i suppose is that may be event 1073 is not the suited event or transaction FP09 is not the required transaction.
    please help me in this regard.
    Regards,
    Sumit

  • Problem to add the Note for Invoicing Document using Idoc

    Hi All,
    I would like to use the idoc to create the Invoicing document (MIRO). it seem can't use standard segment E1EDKT1 to create the standard text.
    Anybody have any suggestion to create this standard text?
    Regards,
    Luke

    Hi Krishna,
    I checked WE60 and tried use the E1EDKT1 to create the standard text for invoicing document.
    Document created successful but can't add the standard text in this document.
    also i try to find some exit for update the standard text. i can't find out any exit after creating the invoiceing document.
    would you please give more advise to me ?
    Regards,
    Luke

  • Link IDoc to FI document using Object Services

    We are using a custom IDoc to post financial documents to the R/3 system. There is a requirement to determine the IDoc number that created the accounting document as happens automatically with Incoming Invoices (object type BUS2081).
    I'd like to form the link between the IDoc and the Financial document using Generic Object Services so that the Relationships functionality in transaction FB03 can be used. Does anyone know how I can form the link between the IDoc and the Accounting document when posting the document? We use BAPI_ACC_DOCUMENT_POST to post the Accounting document.
    Thanks in advance for any help.
    Regards,
    JB

    call function 'BDS_BUSINESSDOCUMENT_CREA_URL'
          exporting
            logical_system = logical_system
            classname      = classname_select
            classtype      = classtype_select
            client         = sy-mandt
            object_key     = objkey_select
          tables
            uris           = i_uris
          exceptions
            error_kpro     = 1
            internal_error = 2
            others         = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
                  with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        endif.
    for logical_system use FM OWN_LOGICAL_SYSTEM_GET to get your logical system name.
    class name= BKPF
    classtype = BO
    object_key = <companycode><doc number><year> e.g 011000001234562007
    in uris talbe pass the urls to be created.
    Raja

  • IDocs for Park Documents

    Hello All,
    We are having a legal requirement in Turkey to which fulfill, we need the credit memos coming from one SAP instance as an iDoc, to be posted as Park Documents on the receiving SAP instance.
    The receiving SAP instance is on 4.5 version.
    Do you know if this is technically possible - Post iDocs as Park Documents when the identifier is posting key 11?
    Many thanks for your help.
    Best Regards,
    Kshitij J

    I use this website for finding available idocs/bapis for different versions:
    http://ifr.sap.com/catalog/query.asp
    Not sure about 4.5 though.
    I guess it would be technically possible.  My ABAP team write some very good bapis.

  • Authorisation check for Object F_BL_BANK using transaction F110

    Hi
    Can you help me with transaction F110. The object F_BL_BANK has been linked on SU24 to transaction F110.  It has also been set for Check/maintain.
    There is no authorisation check for this object using F110.
    How can we resolve the issue.

    Hi
    We are on 4.6
    I linked the object but the program is not doing an authority check The F_BL_BANK object has the following linked to it
    .  .     .  Check          F_BKPF_BUP Accounting Document: Authorization for Posting Periods   
    .  .  .     Check/maintain F_BL_BANK  Authorization for House Banks and Payment Methods        
    .  .     .  Check          F_KNA1_APP Customer: Application Authorization                      
    .  .     .  Check          F_KNA1_BED Customer: Account Authorization                          
    .  .     .  Check          F_KNA1_BUK Customer: Authorization for Company Codes                
    .  .     .  Check          F_KNA1_GEN Customer: Central Data                                   
    .  .     .  Check          F_KNA1_GRP Customer: Account Group Authorization                    
    .  .     .  Check          F_LFA1_APP Vendor: Application Authorization                        
    .  .     .  Check          F_LFA1_BEK Vendor: Account Authorization                            
    .  .     .  Check          F_LFA1_BUK Vendor: Authorization for Company Codes                  
    .  .     .  Check          F_LFA1_GEN Vendor: Central Data                                     
    .  .     .  Check          F_LFA1_GRP Vendor: Account Group Authorization                      
    .  .     .  Check          F_PAYR_BUK Check Management: Action Authorization for Company Codes 
    .  .  .     Check/maintain F_REGU_BUK Automatic Payment: Activity Authorization for Company Code
    .  .  .     Check/maintain F_REGU_KOA Automatic Payment: Activity Authorization for Account Type
    .  .     .  Check          PLOG       Personnel Planning                                       
    .  .     .  Check          P_ABAP     HR: Reporting                                            
    Ther are more objects but these are the key ones The object also has a custom object in that was build by SAP called ZLSCH      Payment method  We want the system to do a check on the payment method

  • Trigger IDoc when outbound documents are deleted

    Hi Experts,
    I am working on a scenario where in when delivery document is deleted then we need to have a IDoc to be triggered and sent to the receiver.
    I understand that when we create/change delivery, there is a way to trigger IDoc (i.e., through message control). But when we delete a delivery, I am not sure, we have standard mechanism to trigger an IDoc. Can we have a standard way of making this happen?
    Thanks & Regards,
    Suraj Kumar

    Hi,
    In the NACE transaction, Click on the APPLICATION V2 and create a new OUTPUT type with Z as prefix
    In the Processing Routine Tab in the control data enter the MEDIUM as  6 which is the  EDI and  maintain the PROGRAM & SMARTFORM as developed by the ABAPer
    Now maintain the CONDITION RECORDS with the MEDIUM 6  and the LS as Partner function
    Now with the Help of your ABAPer, define  the PARTNER PROFILES in WE20 and the Message types .
    This will trigger the OUTBOUND idoc to the other system.
    Please check these settings and revert back if you need more details
    regars,
    santosh

Maybe you are looking for

  • Change header pricing condition in sales order

    Hi, I have an requirement in VA01 and VA02 to automatically edit one header pricing condition. The user can able to change the value of that condition type in header not in items . Does anyone know what user exit I can use for this requirement. Thank

  • IE 8 seems to be less help for a rounded table corner...

    Hi, I'm using DW CS3 on an intel iMac and first, 2 things: I use tables to build my sites (there's some CSS around here and there + a couple of external style sheets etc) and secondly, the problem I'm asking about here does not seem to occur at all o

  • Update the content through Rich Text Editor

    dear all, Once i enter the content through the Rich Text Editor data are inside the datebase, but when want to update the things the data are not coming inside the Rich Text Editor, b'caz single quote, double quote,<> symbol is coming,

  • Accessing RUN through java programming

    Sir, i need to develop a java application t access "run" in start menu.How can i access the run menu through java programming.?I want to run the program in the run command when we input command through the java program..please help me..if you have th

  • How to hide Navigation bar

    In photo application on iPhone, if you click an image and wait a few seconds. The navigation bar above will disappear and give you the full screen view. How could I implement this in SDK? I saw UINavigatioinbar is a private class inside UIViewControl