‎2007 Jan 12 6:29 PM
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.
‎2007 Jan 15 2:00 AM
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> .
‎2007 Feb 13 6:55 PM
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
‎2007 Feb 19 4:03 PM
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
‎2008 Aug 01 4:32 PM
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.