Hello,
You can make use of FM READ_TEXT to read DFBATCH or parameter id of MATNR.
thank you!!
In your FM you could analyze the memory of the caller (function group CHRG) as DFBATCH is declared there with a TABLES statement. The data is available. Call SYSTEM_CALLSTACK to insure you are in the correct transaction. Then use either a wild assign statement (to "(SAPLCHRG)DFBATCH") or just get parameter id MAT.
NB: Of course when the characteristics is changed thru BAPI or classification classes you will have to adapt your code. Another solution is to provide a wide generoc value list in the FM, and then perform some check(s) in method CHECK_CLASSIF_BEFORE_SAVE of BAdI BATCH_MASTER.
Add comment