Application Development 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: 

BADI_INVOICE_UPDATE

former_member182371
Active Contributor
0 Kudos

Hi,

in BADI_INVOICE_UPDATE, in method CHANGE_BEFORE_UPDATE there is an import parameter E_RBGKP that i´d like to change. Having no export parameter

is there a way to chage it here

? if so how?

could it be via field-symbols?.

Best regards.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try use field symbol assign to change the field value.

First make sure that the field can be assigned to a field symbol. Usually the field must be declare in global top include program.

If yes. Then

ASSIGN (l_v_field) TO <l_fs>.

CHECK sy-subrc EQ 0.

<l_fs> = new_value. " change value here

l_v_field is char type. l_v_field = (PROGRAM-NAME)FIELD-NAME.

Good luck.

Edited by: Chris Xu on Dec 25, 2007 11:47 AM

3 REPLIES 3

former_member182371
Active Contributor
0 Kudos

Hi,

sorry, the name of the import parameter is <b>S_RBKP_NEW</b>.

Best regards.

former_member182371
Active Contributor
0 Kudos

unanswered yet

Former Member
0 Kudos

Try use field symbol assign to change the field value.

First make sure that the field can be assigned to a field symbol. Usually the field must be declare in global top include program.

If yes. Then

ASSIGN (l_v_field) TO <l_fs>.

CHECK sy-subrc EQ 0.

<l_fs> = new_value. " change value here

l_v_field is char type. l_v_field = (PROGRAM-NAME)FIELD-NAME.

Good luck.

Edited by: Chris Xu on Dec 25, 2007 11:47 AM