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

Similar Messages

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

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

  • 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

  • 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

  • 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

  • Manual check associated with wrong posting document

    For our manual checks we use a two step process:
    1. FB01 to create the payment document.
    2. FCH5 to create the check that will be associated with the corresponding payment document.
    However, we created a check before creating the correct payment document. Now the check corresponds with the incorrect payment document and will be posted to the wrong bank accounts. To make matters worse, the check has been cashed already.
    Is there any way to change the posting document associated with this check?

    Hi,
    Your issue can be resolved technically only with the help of your ABAPer.
    Go to SE16N and enter table name PAYR, and enter your company code and check number in the selection screen and execute it. Now you will get one record for your selection.
    So here you need to change the values of the below fields manually.
    Vendor Code ( if you have given wrong vendor code also whle creating FCH5)
    Payment Doc Number
    Currency
    Vendor Name
    City
    SAVE it and now check with FB03 for the newly assigned document, whether system is showing CHECK INFO by menu item -> Environment -> Check Information
    Check for the old document also in FB03, system would not show check information anymore like above.
    Hope this would resolve your issue.
    Note: Only your ABAPer can change the values in the SE16N.
    Regards,
    Srinu

  • My user has posted invoice in FB01 For Venor but its shows as cleared items

    Dear experts
    My user has posted invoice in FB01 For Vendor but its shows as cleared items in G/L and Vendor line items.
    can you please give your suggestion on same
    Thanks and Regards
    vamsi
    Edited by: asuvamsi on Feb 7, 2010 1:07 PM

    Hi,
    Most possible causes for your issue..
    1) Your GL account might not created with Open Item Management, even that GL account is B/S account.
    2) No vendor invoice will be created as cleared items automatically, may be someone might have cleared that invoice with anohter payment document.
    Please verify correctly.
    Thanks,
    Srinu

  • Master Data fields not copied to posting document

    Hello together,
    I have the problem that some fields of the supplier master data, like terms of payment and payment method are not copied into the posting document.
    For example, I am using transaction FB60 or FB01 to post a supplier invoice, but the payment method is not filled in automatically by the system although these data is available in the master data of that supplier. I debugged the program and the system is really going to the supplier master data table LFB1 and reading the information but later it is not visible.
    The wired thing is that it worked before and now it stopped working just from one day to another.
    I am happy for any help and ideas.
    Thanks a lot in advance,
    best regards, Rica

    Hi Rica,
    User need to enter payment method while posting doucment if you want to display payment method in line item.
    Anyhow, if the payment method is available in the master record than automatic payment program will consider the payment method while gerating proposal.
    Following is the F1 description for payment method in display document:-
    Payment Method
    Payment method with which this item is to be paid.
    Use
    If you enter a payment method, then only this payment method can be used in automatic payment transactions. If you do not enter a payment method, then one of the payment methods which was allowed in the master record is selected in the payment program according to specified rules.
    Procedure
    For document entry or document changes, you only enter a payment method if you want to switch off the automatic payment method selection of the payment program.
    Regards,
    Anand Raichura

  • 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 documents using F-28

    Dear Friends,
                            While posting Documents using 'F-28' after I passed posting key and account number I m getting the Error
    'Entry not Possible'. Can anyone tell what may be the problem how to clear this error.
    Regards
    Balamurugan N
    Moderator message: duplicate post locked, follow up on your previous one instead of opening a new thread for the identical problem.
    Edited by: Thomas Zloch on Apr 26, 2011 8:34 PM

    Hi,
    I Guess this error is occuring because of the posting key and account number (Account type) combination is not correct. For each account type a perticular posting is is defined for debit and credit entries.
    Check with your functional the correct posting key for account type and account number you are using.

Maybe you are looking for

  • GRC 10.0 Access Request workflow error

    Hi, While creating change request in AC10 to assign roles I get task errors (see example in attachment) and request does not appear in approver`s (manager stage) work Inbox. Can anyone help and advice what can be missing and what should be checked ad

  • I want  to create dynamic ALV report

    Hi great abapers, I want  to create dynamic ALV report.Please help me. Regards, Billa

  • JSF & SUN JAVA STUDIO ENT EA 2

    Hi all, This enterpise studio supporto visual programming for web applicaton make with JSF and struts? THe sun java creator support JSF( VIEW framework ) with visual ide but seems that dont' support struts for MODEL-CONTROLLER framework. Thanks

  • FaceTime will not ring on my Mac, but will on every other device

    For some reason about a week ago, my Mac stopped ringing for FaceTime.  FaceTime will ring on every other apple device in the house, but not my Mac.  I've tried every setting change that seems logical, and nothing works.  I see from the forums that l

  • Vmware slow

    hi i've   installed vmware 5.5 from AUR and install WinXp as a guest OS. The problvem is the WinXP installation process very slow. It takes more than 1 hour to install. Anyone know what is the prob?