Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for FB01

Former Member
0 Likes
2,757

Hi,

I am using bapi BAPI_ACC_DOCUMENT_POST.. for FB01 but i am not getting Two fields

PstKy (Posting Key for the Next Line Item) and SGL Ind (Special G/L Indicator for the Next Line Item)

is any other bapi avilabel for this...

or please give me sample bapi for FB01 or BAPI_ACC_DOCUMENT_POST.

<removed by moderator>

Thanks.

Edited by: Mike Pokraka on Aug 4, 2008 2:40 PM

7 REPLIES 7
Read only

ThomasZloch
Active Contributor
0 Likes
1,251

This is the best BAPI for this purpose.

The posting key is derived automatically within the fm based on whether it is a debit/credit and whether it is a GL, AP or AR posting.

Not sure about the special G/L indicator at this moment.

Thomas.

Edit: special G/L indicator is also set within the fm, but I could not cleary find out the logic at quick glance

Read only

former_member182371
Active Contributor
0 Likes
1,251

Hi,

have a look at report ACC_BAPI_TEST_DOCUMENT

Best regards.

Read only

Former Member
0 Likes
1,251

<removed by moderator>

Edited by: Mike Pokraka on Aug 4, 2008 2:40 PM

Read only

Former Member
0 Likes
1,251

Hi

The posting keys are setted by the BAPI in according to the item type (customer, vendor and G/L) and the sign of amount.

The BAPI usually uses the standard posting key: 01/11; 40/50, 21/31.

If it needs a different posting keys it needs to assign them to a certain operation key (field KOTSL): u can do it in the table T030B.

Anyway u should consider u can use the BTE RWBAPI01 in order to set own data into FI interfaces.

Max

Edited by: max bianchi on Jun 20, 2008 11:16 AM

Read only

Former Member
0 Likes
1,251

Hi,

Bapis for FB01 transaction;

Try FM POSTING_INTERFACE_DOCUMENT

try these:

BAPI_ACC_GL_POSTING_POST

BAPI_ACC_BILLING_POST

BAPI_ACC_INVOICE_RECEIPT_POST

Please try using program RFBIBL00 .. direct input method.

Regards,

Sharath

Read only

Former Member
0 Likes
1,251

thanks max..

Read only

0 Likes
1,251

Hi,

I Implemented Code in Enhancement Spot, I added One Field in standard Selection Screen using Enhancement spot for MRRL Transaction, But I am not able to maintain Selection Text for that Field It is showing in Selection Screen P_XBLNR Like. If i tried using goto --> Text Elements --> Selection Texts it is asking Key.

Can any one help me how to maintain Selection Text for Standard Program using Enhancement Spot .

Thank You,

Nagaphani