FB01 and BAPI_ACC_DOCUMENT_POST

Hello,
I'm using BAPI_ACC_DOCUMENT_POST to simulate FB01.
Someone has used this BAPI to simulate FB01??
I cant find the Posting Key (BSEG-BSCHL) in this BAPI, and i really need that.
Can anyone tell me if i should use this BAPI to simulate FB01 or exists another one.
And can someone help me to find the Posting Key in this BAPI?
Thanks in advance
Best regards.

Hi,
The posting key is decided automatically by the BAPI, it depends on the sign you have assigned to the amounts.
In this case I suppose the BAPI'll use the postig key 40/50:
- 40 if the amount is greater than 0,
- 50 if the amount is less than 0,
So you can have some problem only if you need to use some keys different from 40/50.
In this case I believe you have to use the BAPI BAPI_ACC_DOCUMENT_POST, here you can choose which posting keys to be used in order to transaction key (<b>KOTSL).</b>
See the table T030B
If I could make a suggestion why dont you use <b>LSMW</b> for the same
The standard object is 0100.
It uses the standard program RFBIBL00 itself. But you should be able to format it easily
Here is a document on how you can use the tool.
http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
<b>Or you can Do BDC</b>
Look at the below threads, these threads have the sameple code also
BDC For FB01
BDC  for FB01  Transaction.
Suggest you to Search in SDN with key - FB01
Will get few more useful related Posts.
Reward points if this Helps.
Manish
Message was edited by:
        Manish Kumar

Similar Messages

  • Fields suppressed when posting with FB01 and special gl-indicator

    Hello everybody,
    I have the following problem:
    I'm trying to make a vendor open item posting with transaction code 'FB01' and a special G/L-Indicator. Although the field status group of posting key and target reconciliation account is set all to optional, some fields which should be populated are suppressed, such as ZLSPR or ZBD3T.
    Does anybody know what the reason for this is?
    Thank you in advance!
    Regards,
    B

    Hello,
    If the posting keys and reconciliation account's field status variants are maintained correctly, then you should also check if you are using any screen / transaction variants
    I am completely not sure about this, but you can check this. I hope this helps.
    Best regards,
    Suresh Jayanthi.

  • Tax Percentage varience while caluculating FB01 and FBB1

    Dear team,
    While making postings through FB01 and FBB1 the tax is calculating with two different percentages for the same tax code i.e ZF.
    The tax code ZF (VAT)we are using it for both.System is calculating tax code 19% tax is deducting while doing Fb01 and 5% is deducting on FBB1.
    Kindly let me know why system is calculating this variance for the same TAX code.
    Thanks for the cosideation.
    Regards,
    Suma

  • FB01 and F-02

    Dear All,
    I am very confused with so many tcodes and so are so similiar like FB01 and F-02 and many more as the time i explore and learn more...
    What is the difference or there no difference with this 2 tcodes?
    I remember foreign currency and payment also have similiar one, but now can;t remember?
    Can anyone explain?
    Thanks !!

    FB01 :
    a) ''Post Document''
    b) No doc type as SA automatically comes.
    c) No automatic posting key population as 40
    F-02
    a) ''Enter GL account Posting''
    b) Doc type = SA
    c) Posting key = 40
    Ofcourse these (b and c) can be over written and there by a) also.
    Both call SAPMF05A program at the back end.
    regards
    S.

  • Difference between "FB01" and F-02"

    Hello Experts,
    Can any body tell me the difference between "FB01" and F-02"
    Regards.

    Hi
    F-02 is  a variant of FB01. It is generally used for GL posting and has default values for T-type (SA) and Posting key (40). FB01 is used for any document posting and has no default values.

  • BADI - FB01 and FB50 segments

    Hello Friends.
    I need to implement a BADI for transactions FB01 and FB50, at the exact momment the first segment is entered.
    I noticed it needs two corresponding segments to save into the document  (keys 40 and 50, for instance). I need to place my validations just after the first of these two segments are entered.
    Using the class cl_exithandler, I found there is a badi named FAGL_SEGMENT_BS_ACC, which method is executed at this moment.
    However, when I try to implement this BADI, it asks for a filter. But I'd like it to be valid for all situations, don't want to filter it.
    Please, could someone help me with this?
    Thanks in advance!
    Regards,
    Rodrigo Hoffman.

    Hi,
    1) Go to se19
    2)Create Implementation for BADI FAGL_SEGMENT_BS_ACC To ZFAGL_SEGMENT_BS_ACC
    3)In Attribute tab you will find as defined filter,Now you enter your reqired Controlling areas(Give f4 you will find better to sit functional consultent he will give the scenarios)so,you can give N no of condition based on your reqirement.
    4) if you want to remove the filters you can deactive BADI first then remove/add filters based on your condition.
    Regards
    Kiran Sure

  • FB01 and entering billing document number

    Hi,
    We're trying to create an LSMW for FB01 - but would want to but in a billing document transfer.
    Is this possible to be done in LSMW or must it be done in BAPI ?

    HI,
    At the moment doing we do not have a choice on running on LSMW and BAPI - we are not familiar running it. The key question can FB01 in LSMW accept posting on billing document number (VBELN) field ? I recall that this field is not editable once the document is created. So if we post via FB01 can we enter this field ?

  • F-48, Special GL Indicator, and BAPI_ACC_DOCUMENT_POST

    In a thread a few days ago over in the ABAP General forum, Eric Cartman indicated that it might be possible to use BAPI_ACC_DOCUMENT_POST to do an F-48.
    I met with the functionals today and we took an F-48 recording to see how their input field requirements line up with this BAPI.
    Everything looks "vanilla" except for the Special GL Indicator - they made this "N" in the recording.
    But when I looked for Special GL Indicator in the BAPI structures, I didn't see a place for it.
    So, two questions:
    a) did I "miss" Special GL Indicator in the BAPI structures - is there actually a place to put it?
    b) if not, is this a "gotcha" - does it mean that you can't use the BAPI for the kind of F-48 they want to do?
    Any help would be appreciated.
    Thanks
    djh

    hi David,
    I am afraid you overlooked...
    BAPI Tables parameters:
    ACCOUNTRECEIVABLE ==> structure BAPIACAR09
    ACCOUNTPAYABLE ==> structure BAPIACAP09 (F-48 is for vendors, so you need this one)
    in both cases the field for special G/L is SP_GL_IND (somewhere at the end)
    hope this helps
    ec

  • User exit -  Default 'V' within field BSEG-REBZG - fb01 and more

    Hi experts,
    I need to get the user exit so i can fill in the field BSEG-REBZG as default 'V' (picture from [User Exit in fb01|http://imageshack.us/photo/my-images/442/userexitfb01.png/])
    Can anyone help me out how to do this? I've read previous threads and i did the same but i still doesn't get the V in that field as you can see in the picture above.
    [Default Setting for BSEG-REBZG field in all Sales Orders|Default Setting for BSEG-REBZG field in all Sales Orders]
    Regards,
    Michael
    << Moderator message - Please do not promise points >>
    Edited by: Rob Burbank on Dec 14, 2011 9:33 AM

    i tried substitution but it doesn't seem like you can substitute that field  BSEG-REBZG.
    So how can you resolve this?
    I seem any topics about this but not really a good result....
    anyone please help?

  • Fb01 and lsmw

    Hi All,
    I created a LSMW for FB01. But sometimes I will post 300 lines and sometimes 10. So this variable.
    But in the recording I connect every posting line to a unique line in Excel. Is there a way to avoid this problem?
    Thanks,
    Eric.

    How many headers are you dealing with?
    Send me over the LSMW program and the file you are working on. I will debug this for you.

  • FB01 and IDES 4.7

    Hi, gurus,
    i can't post any document in ides 4.7 with FB01.
    I want to use easy way to do it and i don't know how. Can you help me, please?
    Eugene.

    To post documents using FB01, first you must open posting periods,  use transaction OB52, set years 2008 for document type you want to post or for all documents types,
    then you can post documents using FB01.
    please reward points if helpfull.
    Ihsen ABROUG.

  • Posting of Trading partner FB01 via BAPI_ACC_DOCUMENT_POST

    Folks,
    I have written ABAP code to create accounting document in SAP from excel . My requirement is to give trading partner (VBUND) in the sheet which will be processed by SAP. now i am using BAPI "BAPI_ACC_DOCUMENT_POST " to upload entries in SAP but i can not find table fields in BAPI to map trading partner field . can any one throw light on this. I guess i may have to EXTENSION2 in this BAPI , can any one tell how to use thatg.
    Regards.

    Hi,
    Check this structure 'BAPIACGL09'
    fields
    PART_ACCT       JV_PART     CHAR     10     Partner account number
    TR_PART_BA       PARGB         CHAR     4     Trading partner's business area
    TRADE_ID                  RASSC                     CHAR     6              Company ID of trading partner
    Regards
    Krishna
    Edited by: Krishna Gowrneni on Apr 22, 2009 12:35 AM
    Edited by: Krishna Gowrneni on Apr 22, 2009 12:36 AM

  • Parking documents using PRELIMINARY_POSTING_FB01

    Hi,
    I am a writing a custom program to park documents through FBV1.  Here I using PRELIMINARY_POSTING_FB01.  But as it doesn't have a return table of type bapiret,  I am not able to catch the messages.  Once an error message comes, it is exiting from the program itself.  But I need to save the error messages.  How will I do this ?

    Hi,
    I think that FM PRELIMINARY_POSTING_FB01 is for internal use only and was created just to be called from transaction FB01. I do not thing there is some way how to get error messages and supress terminating a program, because there are error messages without raising any exceptions. I have not found a BAPI for parking documents. The best way to solve your issue is probably creating a batch input. It should be easy.  If You want still to use FM PRELIMINARY_POSTING_FB01 , the only idea I have is a little bit complicated. You can call FM in background task, wait until job finishes and than read a job jog to get messages. But I do not think it is a good looking solution, but by this You can achieve that You will be able to get messages of FM without terminating a program. There are some other threads about BAPIs for parking documents:
    FM/BAPI for Parking a document ( FBV1 )
    BAPI to PARK accounting document
    FB01 and BAPI_ACC_DOCUMENT_POST
    Regards,
    Adrian

  • POSTING Key problem for 15 & 40

    Hi All,
    when i am using BAPI_ACC_DOCUMENT_POST.
    it executes successfully but
    if i enter the amount with + sign it uses 01 as the posting key.
    if i entered the amount with - sign it selects 11 as posting key.
    but requirement is instead of 11 or 01 I want 15 and 40 as posting key for Document type DZ .
    how it determines the key?
    and can i change the posting key?
    How can I pass the posting key field to this BAPI?
    Please can anyone help me regarding this....Thanks in Advice.

    Hi Suresh,
    Please follow the thread given below which talks about issue with posting key.
    FB01 and BAPI_ACC_DOCUMENT_POST
    Best Regards,
    Krishna

  • IXOS and FB01

    Hello,
    I'm receiving a payments list from the Bank per E-Mail with all the payment pictures. Now I should implement a tool to 1) save the picture on a IXOS DMS and 2) create a connection between the FI-document (FB01) and a the IXOS-document.
    How could I save the picture on the IXOS server, with which function module?
    Should I build the connection between the two document after the FB01 or in the batch Input?
    Any hint will be welcome!
    Thanks.
    Regards
    Tommaso

    Hi Tommaso,
    I think you need to configure ArchiveLink to store incoming documents, images, etc. I think IXOS Archiving do the same.
    see:
    http://help.sap.com/saphelp_nw04/helpdata/en/5e/566039b85f9443e10000000a114084/frameset.htm
    Hope this help!
    Juan
    Please reward with points if helpful

Maybe you are looking for

  • I just upgraded to Yosemite and now Safari will not open

    I have just started to explore Yosemite and I cannot use Safari - it crashes. It was the most current version before I upgraded to Yosemite and it worked fine - any thoughts?

  • Can two devices be on one itunes account?

    can u use youre ipad and iphone one one itunes acct? should you syn youre new ipad2 to the same computer that my iphone is synced to?

  • Implicit conversion of a number to datetime

    I'm running on a SSIS 2008r environment. When I get a date as number of days difference with 1900-01-01 and I insert this number into a datetime column a Sql server database with SSIS  it seems as if SSIS subtracts 2 days when converting to datetime.

  • Issue with anchors

    I am using anchors to link to a specific place in a document on the same page. For example I have name links at the top of page. When the link is clicked it brings the user down to the bottom portion of page with the respective persons name and bio.

  • Prime Infrastructure 2.0 Link Status Alarms

    Hi, we are used SNMP traps sent from our core switches to our PI 1.3 server to notify us about link down events. In this scenario we got emails only for link down events on our core switches. Now, we are using PI 2.0. It seems PI 2.0 checks link stat