BAPI as interface to post document in FB01

Hi all
We are transferring data from Biztalk(middleware) to SAP in xml format through the BAPI Z_BAPI_ACC_DOCUMENT_POST to post document in FB01. Biztalk is able to send the data to sap. But when the document fails it is not returning the Return table to Biztalk. It is sending export parameters as  
<OBJ_KEY>$</OBJ_KEY>
<OBJ_SYS>DV1</OBJ_SYS>
<OBJ_TYPE>BKPFF</OBJ_TYPE>
Now when the bapi fails where can i see the log for that if it is called from BIzatalk. I mean when the RFC fails hw vl i knw the reasons for the failure.....
If  i do the same scenario in sap it is workin fine..... the problem comes only when it is called from middleware.....
We copied the standard BAPI BAPI_ACC_DOCUMENT_POST to a ZBAPI....
n used BAPI_TRANSACTION_COMMIT in my ZBAPI....
Can anyone please help me on this......

Wild guess, though I doubt it will be of much help: In the olden days when you called RFC Function modules via external RFC clients, SAP did not return any TABLES function module parameters that were not specified. I.e. instead of not passing the parameter at all, you had to specify an empty table for any TABLES that were returned by the RFC call. I wonder if something similar happens in your case with the RETURN table (though I have no clue how if you're calling RFC via SOAP or RFC protocol).

Similar Messages

  • Posting Documents in FB01

    Can any one help me in posting documents in FB01...
    i am using session method  only..
    Please help me

    hi,
    i prefer to use 'BAPI_ACC_DOCUMENT_POST' for creatin a financial document i try to give to u how to set the minimum value in the structure/tables of the bapi.
    > DOCUMENTHEADER                                                        
    >        BUS_ACT                    =    'RFBU'           "for FI document    
    >        USERNAME                =    sy-uname
    >        HEADER_TXT              =    your text
    >        COMP_CODE              =    Company code
    >        DOC_DATE                  =    Document date
    >        PSTNG_DATE              =    Posting date
    >        FISC_YEAR(1)              =    The year of posting date
    >        FIS_PERIOD(1)             =    the period of posting date
    >        DOC_TYPE                  =    document type
    if you set a different year or period from the value that you have in the posting date the bapi trigger an error
    > ACCOUNT GL
    >       ITEMNO_ACC   = progessive number
    >       GL_ACCOUNT  = G/L Account
    >       ITEM_TEXT       = item text
    >       DOC_TYPE      = document type (the same of the header for all item)
    >       COMP_CODE   = company code (the same of the header for all item)
    >       BUS_AREA      = business area
    >       TAX_CODE       = tax code
    if you set a different doc_type or company code for each item the bapi trigger an error
    > ACCOUNTTAX                
    >            ITEMNO_ACC   =  progressive number
    >            GL_ACCOUNT   = G/L Account referred to TAX CODE
    >            TAX_CODE        = TAX CODE
    >            TAX_RATE        =  TAX RATE
    >            ITEMNO_TAX     = progressive number  which tax item is referred
    >CURRENCYAMOUNT
    >           ITEMNO_ACC     =  progressive number
    >           CURRENCY        =  currency
    >           CURRENCY_ISO =  iso currency that you find in TCURC-ISOCD table
    >           AMT_DOCCUR    =  amount with sign the sign +/- identify Debit/Credit Indicator
    > - this field only for tax record
    >           AMT_BASE        =   is the AMT_DOCCUR of the line which ypu want to calculate the tax with sign
    >           TAX_AMT           =    tax amount
    usually for calculate the correct value i use these functions 'CALCULATE_TAX_FROM_GROSSAMOUNT'.
    for example:
    DOCUMENTHEADER                                  
    >        BUS_ACT                    =    'RFBU'
    >        USERNAME                =    sy-uname
    >        HEADER_TXT              =    'my_text'
    >        COMP_CODE              =    '0001'
    >        DOC_DATE                  =    '20080115'
    >        PSTNG_DATE              =    '20080115'
    >        FISC_YEAR(1)              =    '2008'
    >        FIS_PERIOD(1)             =    '01'
    >        DOC_TYPE                  =    'SA'
    ACCOUNT GL
    >Record 1
    >ITEMNO_ACC =  0000000001
    >GL_ACCOUNT =   0290111010
    >ITEM_TEXT =   ITEM_TEXT
    >DOC_TYPE =    SA
    >COMP_CODE =    0001
    >BUS_AREA =   GS1                                                                       
    >Record 2
    >ITEMNO_ACC =  0000000002
    >GL_ACCOUNT =    0500103900
    >ITEM_TEXT =   ITEM_TEXT
    >DOC_TYPE =   SA
    >COMP_CODE =   0001
    >TAX_CODE =  V2
    ACCOUNTTAX
    > Record 3
    >ITEMNO_ACC =   0000000003
    >GL_ACCOUNT =  0221103001
    >TAX_CODE =  V2
    >TAX_RATE =  20.000
    >ITEMNO_TAX = 0000000002
    CURRENCYAMOUNT
    >Record 1
    >ITEMNO_ACC = 0000000001
    >CURRENCY =  EUR
    >CURRENCY_ISO =   EUR
    >AMT_DOCCUR  = 150.00
    >AMT_BASE =  0.00
    >TAX_AMT =  0.00
    >Record 2
    >ITEMNO_ACC = 0000000002
    >CURRENCY =  EUR
    >CURRENCY_ISO =   EUR
    >AMT_DOCCUR  = -125.00
    >AMT_BASE =  0.00
    >TAX_AMT =  0.00
    >Record 3
    >ITEMNO_ACC = 0000000003
    >CURRENCY =  EUR
    >CURRENCY_ISO =   EUR
    >AMT_DOCCUR =  -25.00
    >AMT_BASE =  -125.00
    >TAX_AMT =   -25.00
    hope that is useful.
    Bye
    Marco

  • Post Document in FB01

    Hi Experts,
    I am using below mentioned FM to post the document in FB01 and working fine when i am going for call transaction.
    POSTING_INTERFACE_START
    POSTING_INTERFACE_DOCUMENT
    POSTING_INTERFACE_END
    My requirement is i want to use the same FM to post the document in FB01 with batch input session method.
    -Rajneesh Gupta

    Hi Rajneesh ,
    I also have the similar requirement if you have the solution please help with code as I have to record bdc for fb01 and post account document
    Moderator Message: Please continue with your own post - BDC for FB01.
    Message was edited by: Suhas Saha

  • Post document in FB01 with Document curr zero and value in local curr

    Hi all,
    For uploading data migration transactional data we are using FB01. There are payment transactions with amount in local currency for exchange rate difference, but corresponding zero amount in document currency. But the system is not allowing to post an item with zero value in document currency when it has value in local currency field. I also tried T-code FBB1. Though it allows zero posting, it doesnot allow posting with Vendor item.
    (Note: system accepts a value from .01 in document currency field, but doesnot accept 0).
    Could you pl share any inputs regarding this.
    Thanks.
    Sri.

    The scenario I put was a valid scenario. When we use FB01 to upload automatically posted foreign exchange revaluation transactions it will fail and the workaround used was to post in foreground by changng the 0 value field as .01.

  • Error while posting document in FB01

    Hello All,
    While creating a document I encounter th below error:
    Please specify LBZ code
    Kindly help me what the meaning of this.
    Thanks in advance,
    Jhero

    hello,
    thanks for the feedback.
    its ZH285
    thanks in advance,
    Jhero

  • Bapi for post document

    I need create a post document (transaction FB01), there is a bapy to do it?
    Thanks.
    Moderator message: probably the most frequently discussed BAPI around here, please search for information.
    Edited by: Thomas Zloch on Dec 17, 2010 12:37 PM

    I need create a post document (transaction FB01), there is a bapy to do it?
    Thanks.
    Moderator message: probably the most frequently discussed BAPI around here, please search for information.
    Edited by: Thomas Zloch on Dec 17, 2010 12:37 PM

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

  • ECC 5.0 BAPI for posting documents only in non-leading ledger

    Hello,
    for an FI-interface i want to call an BAPI for posting the documents. The document were posted to the leading ledger and to the non-leading ledger by usage of BAPI_ACC_DOCUMENT_POST.
    Now there are cases to post documents only to the non-leading ledger.
    Is there anywhere a possibility to tell the BAPI (e.g. enter the ledger group) only to post to the non-leading ledger or is another BAPI available to do so.
    Thank you for your help.
    Thomas

    Hi Thomas,
    You can use the same BAPI for any type of ledger postings. You can restrict your postings to Type of ledger.
    Cheers
    Srinivas

  • Posting foreign currency document in fb01

    HI i want to post foreign currency document in Fb01. i am facing following error as shown in screen shot
    I have maintained exchange rate type M in OBA1 and even then its prompting for EURX .
    Regards
    kaushal ghedia 

    Hi Kaushal,
    Are you posting in Local i.e Co Cd currency or foreign currency.
    When ever we make posting in foreign currency, system automatically convert it into local currency because of this system is asking for exchange rate for this.
    So please check below settings .
    Go to transaction OBBS and check the ratio between the USD and EUR, than
    Go to Transaction code OB08 and maintain the exchange rate for Type M, between USD and EUR.
    Check the Controlling area currency too in OKEQ.
    Check client currency in SCC4.
    If above setting is fine then you need to take help of ABAPr to debug.
    Regards
    Atul

  • Bapi for posting documents in PCA

    Hello All,
    Does somebody know a FM or a BAPI wich permit's posting in the Profit Center Accounting?
    We have a list of documents for which we have to post documents in the PCA, tables GLPCA, GLPCP. I have found a series of BAPI's for ALE PCA , but nothing usefull.
    I know that usually the posting in PCA is done in automatic from customizing, but for these documents this is not the case. We have to do this posting via a BAPI.
    If anyone has encounterred this situation, please advise.
    Thank you,
    Viorel Nistor.

    Thank you for your answer.
    I have found the BAPI but it doesn't help me very much because it seems that it's purpose is to create a replica of the document to an external system.
    I need to create this document in the same system.
    Has anyone used it in this way?
    Thank you,
    Viorel.

  • BAPI to change the posting data of invoice document

    Hello All,
          I need a BAPI to change the posting date of the invoice document (Type : RE, Generated from MIRA transaction). Do let me know if you can across a BAPI to do it.
    Thanks,
    Siva.

    BAPI_INCOMINGINVOICE_CHANGE

  • Ymenu - Interfaces - Post Document (General Purpose) -- FBB1

    Hi,
    I tried to perform as per below:
    I went to ymenu - -> Interfaces --> Post Document (General Purpose) -- FBB1
    After that in the Source file, i selected the file that i would like to upload.
    Follow by click on the execute button.
    Can i know after i have uploaded to the SAP system then how am i going to display or review back the uploaded data in the SAP System. (The data is in Excel)
    Which transaction code should i use?
    Thanks.
    Best Regards,
    Joo

    Hi Gimmo,
    Thanks for the links.
    I went to  "Reports for evaluating transferred data - RFBELS00 "
    Then i enter RFBELS00 into the SAP system but this Transaction code does not exist?
    i went to SE16, i think RFBELS00 is not a table rite?
    Can i know how am i going to display it?
    Thanks.
    Best Regards,
    Joo

  • User Exit after posting document (FB01)

    Dear all,
    I want to change the BSEG entries based on a mapping table.
    Is there any User Exit after posting document. I debuged long time and couldnt find any User Exit where u can change the BSEG.
    Thank u very much!
    best regards

    thank u for ur answer. I know it but not really! I know there is also an option. But my question here:
    -> Is here no User Exit where I can change the BSEG?
    -> It is possible to write a normal ABAP code in the substitution?
    Thank u very much

  • BAPI_ACC_DOCUMENT_POST posted documents not found

    Hi all.
    I'm using the FM: BAPI_ACC_DOCUMENT_POST to post documents simulating TCODE F-05. Is that possible?
    To execute the BAPI I'm populating data into structure DOCUMENTHEADER(BAPIACHE09) and tables ACCOUNTGL(BAPIACGL09), CURRENCYAMOUNT(BAPIACCR09), and after the execution I call the BAPI_TRANSACTION_COMMIT. The BAPI returns the message: "S RW 605 Document posted successfully: BKPFF 0100082524TOGV2010 R3TVDCL010" but when i try to see the document posted through FB03 or table BKPF (using obj_key+10 as Doc. No.) I cant see it.
    Does anyone know whats happening? Please i need help.
    Regards.
    Gregory.

    Gregory,
    BAPI_ACC_DOCUMENT_POST is equivalent to FB01. You can post the same document that you post using F-05 via FB01 also.
    Are you calling this BAPI via SE37? If yes, then your data will not commit. You need to write a program to call this BAPI and then call the commit BAPI.
    Another option is, in the SE37 screen, use menu option Function Module -> Test -> Test Sequences. Then enter both the bapi and the commit functions in the list and then test.
    Regards,
    Salai.

  • Error while Posting Document in FBV0

    Hi Guys,
    Iam getting following error while Posting Document in FBV0 which is already parked and it is with tax code.
    Error: "No batch input data for screen SAPMF05A 0700"   
    Kindly suggest
    Thanx and Regards
    Munender

    Also have a look at the following notes:-
    =>  Note 26050 - FIPP:Posting not poss. (SAPMF05A,0700,batch input)
    =>  Note 800177 - FB01: No batch input data for SAPMF05A 0700
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • How to delete email from iPhone ONLY and not from server?

    Hi. I have a Yahoo! POP mail account.. Can anyone advise me how to setup my iPhone so it ONLY deletes email from the iPhone and NOT the server. So, after I read an email on the iPhone and delete it, the email remains in the INBOX on the server? If no

  • Transport control program tp ended with error code 0232

    Dear all I've change password for user SAPSR3 by mistake the result from brtools is "password changed successfully in table OPS$CAPADM.SAPUSER for user SAPSR3" after that i can not transport to my production client with error : TP_REPORTED_ERROR Tran

  • Purchase Order with Transaction Type: Missing on scrren

    Hi Guys, I've been searching for the place in config and master data that determines where the Transaction type is linked the the org. unit or user, but have not been succesfull. The selection for transaction type is emty in the "Create Purchase orde

  • SGD 4.6.1 will not install to AD

    Hello All, Just installed 4.6.1 to a RHEL 5.X server and I cannot get it to join my Windows domain. I keep getting an error about unable to connect due to not finding my dcs and that my credentials being bad which is bogus. I just installed likewise

  • Data Migration - SAP EC - Environmental Compliance

    Hi, I'm in a Project here in Brazil and they will start to use the portal SAP EC and I have to do the data migration. I read in some manuals about the "Export Excel Template", but I don't know if this is the correct way to do the data migration for t