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

Account Assignment in PO using BAPI

Former Member
0 Likes
2,187

Dear all,

When the records are uploading of purchase order using BAPI method,it has been created,but my problem is the corresponding account assignment (TAB) values has not uploaded,rest of the things as fine .I have passed the value 'X' to POITEMX-ACCTASSCAT , POITEMX-ITEM_CAT ,also POITEM-ACCTASSCAT = 'K' and POITEM-ITEM_CAT = '0'.

In POACCOUNT and POACCOUNTX ,also i have declared the values like

I assigned value 'X' to C_FLAG.

MOVE : WA_PO-EBELP TO POACCOUNTX-PO_ITEM,

V_ASLNO TO POACCOUNTX-SERIAL_NO,

C_FLAG TO POACCOUNTX-COSTCENTER,

C_FLAG TO POACCOUNTX-PO_ITEMX,

C_FLAG TO POACCOUNTX-GL_ACCOUNT,

C_FLAG TO POACCOUNTX-CO_AREA.

MOVE : WA_PO-EBELP TO POACCOUNT-PO_ITEM,

V_ASLNO TO POACCOUNT-SERIAL_NO,

WA_PO-KOSTL TO POACCOUNT-COSTCENTER,

WA_PO-SAKTO TO POACCOUNT-GL_ACCOUNT,

V_CO_AREA TO POACCOUNT-CO_AREA.

Expecting your valuable answers....Thanks

<=<< Sharing Knowledge is a way to Innovative >>=>

Regards!

Yoga

4 REPLIES 4
Read only

Former Member
0 Likes
1,104

This message was moderated.

Read only

0 Likes
1,104

Hi,

It has very helpful to me.Actually,i had passed the GL account value to BAPI without internal conversion exit,Now,its working fine.

With Regards!

Yoga

Read only

venkateswarareddy_medam
Active Participant
0 Likes
1,104

Hi,

U can Try like this.

MOVE : WA_PO-EBELP TO POACCOUNT-PO_ITEM,

V_ASLNO TO POACCOUNT-SERIAL_NO,

WA_PO-KOSTL TO POACCOUNT-COSTCENTER,

WA_PO-SAKTO TO POACCOUNT-GL_ACCOUNT,

V_CO_AREA TO POACCOUNT-CO_AREA.

I assigned value 'X' to C_FLAG.

MOVE : WA_PO-EBELP TO POACCOUNTX-PO_ITEM,

V_ASLNO TO POACCOUNTX-SERIAL_NO,

C_FLAG TO POACCOUNTX-COSTCENTER,

C_FLAG TO POACCOUNTX-PO_ITEMX,

C_FLAG TO POACCOUNTX-GL_ACCOUNT,

C_FLAG TO POACCOUNTX-CO_AREA.

it will resolves ur proble.

regards,

Venkat

Read only

0 Likes
1,104

Hi venkatesh,

I have coded the same logic... What you are telling,first pass the value to POITEM ,then go for POITEMX.Actually,that is nothing but format to see the codes...Finally we have to pass the values in the BAPI function module.that problem was solved, i also replied about it..thanks for your suggestion

<=<< Sharing Knowledge is a way to Innovative >>=>

By,

Yoga