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

BADI_INVOICE_UPDATE

former_member182371
Active Contributor
0 Likes
665

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
Read only

Former Member
0 Likes
621

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
Read only

former_member182371
Active Contributor
0 Likes
619

Hi,

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

Best regards.

Read only

former_member182371
Active Contributor
0 Likes
619

unanswered yet

Read only

Former Member
0 Likes
622

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