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

Problem in Badi Invoice_update through Memory use.

Former Member
0 Likes
878

Hi Champs,

I would appreciate if anyone could explain one query regarding my problem.

I am working in one Badi (Invoice_update) which doesn't have any export parameter as a result i am facing the problem

<u>Problem is: I have to insert the PO# in Assignment field(ZUONR) number. By default Assignment field contains Date. but my requirement is to change the date to PO# in the Assignment field(ZUONR).</u>

I have debugged and analysed that through Memory if i change the value then it updates the ZUONR field with the PO#.

<b>(SAPLMR1M)RM08M-EBELN contains the PO#

(SAPLMR1M)RBKPV-ZUONR conains the Assignment no.</b>

Now please let me know how to insert the value of (SAPLMR1M)RM08M-EBELN into (SAPLMR1M)RBKPV-ZUONR .

I would definatly appreciate it.

4 REPLIES 4
Read only

Former Member
0 Likes
708

Hi Guys,

At last I solved my problem. I am posting the solution for the future reference.

Please have a look.

FIELD-SYMBOLS : <FS1> tYPE any,

<FS2> TYPE any.

data:v_fieldname1(30) type c,

v_fieldname2(30) type c.

v_fieldname1 = '(SAPLMR1M)RM08M-EBELN'.

v_fieldname2 = '(SAPLMR1M)RBKPV-ZUONR'.

assign (v_fieldname1) to <fs1>.

assign (v_fieldname2) to <fs2>.

<fs2> = <fs1> .

Read only

0 Likes
708

Hi Chidanand,

I saw your thread on the net and I have the same problem as you. I was wondering which method you used within Badi INVOICE_UPDATE: CHANGE_AT_SAVE, CHANGE_BEFORE_UPDATE or CHANGE_IN_UPDATE. I have used the same source code you posted with method but it doesn't update table RBKP. I use the field RBKP-REBZG to insert the PO instead of ZUONR, but it don't think this is the problem

I'd appreciate any help. Thanks in advance,

Gerard

Read only

0 Likes
708

Hi Gerard,

SAP has provided a SAP note regarding BADI INVOICE_UPDATE. Where we cannot change the field value. please see the<b> OSS Note: 392342</b>

Thanks,

Chidanand

Read only

0 Likes
708

Hi Chidanand,

When you say as per the OSS Note: 392342

we cannot change the field value through BADI INVOICE_UPDATE did you put your fieldsymbols code in core mod?

Thanks,

Jyotsna.