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

fieldnames for BAPI_COPAACTUALS_POSTCOSTDATA

tharu
Contributor
0 Likes
1,201

Hi All,

i am using BAPI_COPAACTUALS_POSTCOSTDAT for transaction KE21n(COPA module) & this is working very fine. but i need to pass values for "valuation type & Post line Item data" which is on KE21n initial screen . How do I do this? below is what Im trying to pass but it doesn't accept.

wa_inputdata-record_id = id.

wa_inputdata-fieldname = 'KOKRS'.

wa_inputdata-value = wa_data-post_line_item_val.

wa_inputdata-currency = 'USD'.

APPEND wa_inputdata TO t_inputdata.

wa_fieldlist-fieldname = 'KOKRS'.

APPEND wa_fieldlist TO t_fieldlist.

above is to pass values for "only in operating concern currency" in Post line item

This is urgernt...

Thanks

Hi All,

i am using BAPI_COPAACTUALS_POSTCOSTDAT for transaction KE21n(COPA module) & this is working very fine. but i need to pass values for "valuation type & Post line Item data" which is on KE21n initial screen . How do I do this? below is what Im trying to pass but it doesn't accept.

wa_inputdata-record_id = id.

wa_inputdata-fieldname = 'KOKRS'.

wa_inputdata-value = wa_data-post_line_item_val.

wa_inputdata-currency = 'USD'.

APPEND wa_inputdata TO t_inputdata.

wa_fieldlist-fieldname = 'KOKRS'.

APPEND wa_fieldlist TO t_fieldlist.

above is to pass values for "only in operating concern currency" in Post line item

This is urgernt...

Thanks

1 REPLY 1
Read only

Former Member
0 Likes
679

Maybe check-out program COPA_BAPI_TEST. It seems that SAP provided this program as an example on how to use this BAPI.

Some documentation regarding this program can be found at:

[COPA_BAPI_TEST Test Program for CO-PA BAPIs - SAP Report - ABAP|http://www.se80.co.uk/sapreports/c/copa/copa_bapi_test.htm]

Good luck,

Robert