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_ACC_DOCUMENT_POST

Former Member
0 Likes
1,111

hei guys,

i use 'BAPI_ACC_DOCUMENT_POST' to create some documnets of vendor, but when use 'Special G/L Indicator', it return some error message

for exmple:

ACCOUNTPAYABLE-itemno_acc = 1.

ACCOUNTPAYABLE-vendor_no = '0000000001'.

ACCOUNTPAYABLE-gl_account = '2201010101'.

ACCOUNTPAYABLE-SP_GL_IND = 'W'.

SO return message is ''Special G/L transactions of ''w' are not supported', help me please

6 REPLIES 6
Read only

arjun_subhash
Active Participant
0 Likes
872

hi,

is it working fine without passing special gl value?

regards

Arjun

Read only

Former Member
0 Likes
872

Hi

This is not a technical issue. Your Functional Consultant has to maintain Special G/L.

Thanks & Regards

Nagamani Challa

Read only

Former Member
0 Likes
872

i am sure that it is issue, because i track the code i found SAP CHECK SGL IND of 'W',

YOU can see function module 'FI_DOCUMENT_CHECK' -> PERFORM SUBST_BSCHL ->

PERFORM SUBST_SINGLE_BSCHL -> 'FI_POSTING_KEY_DATA', SAP CALL THIS FUNCTION TO CHECK SGL IND, THEN THE CODE IS 'IF X_UMSKS EQ CHAR_W.

MESSAGE E246 WITH X_UMSKS X_UMSKZ.

ENDIF.'. I contact with SAP, THE feedback is BAPI_ACC_DOCUMENT_POST can not support special G/L IND OF 'W' AND there has no bapi to support this kind.

Read only

Former Member
0 Likes
872

I check the kind of SGL IND, i found that 'W' can not be posted, but 'A' can be posted

Read only

Former Member
0 Likes
872

thanks so much

Read only

WenjingLiu
Participant
0 Likes
872

Hi gurus,

I hope someone has already found a way to create documents for 'W' by using some function modules or BAPIs rather than batch input method. Would be very grateful if someone told me the solution.

Best,

Arwen