06-06-2011 7:55 AM
Hi,
I was having a requirement of checking some conditions on the parameters, that were not in Import Export Changing/Tables of a BADI in which i had a method for my additional code.
How to place a condition in such scenarios if the required parameters doesn't exist.
Thanks in advance.
06-06-2011 1:46 PM
I guess you are trying to access variables inside BADI which are not available as Import/Export parameter of BADI. IF these variables are global
variables of the program then you can read this varaibles inside BADI by use of field symbols.
Field-symbol <fs> type any,
Assign ( ' (Program name)variable' ) to <fs>. --- program name is main program of your transaction & variable is the data you want to access.
In <FS> you will get the variable data.
Thanks,
Pawan
06-06-2011 8:13 AM
Hi,
I guess you need to provide more information on the transaction, the flow etc...in general other than the interface of the method in the BADI you can also look at the attributes of the BADI class and see if it has any attributes that might be of use..there are other ways too, but you might have to provide more information on your requirement to get more helpful answers.
Regards,
Chen
06-06-2011 1:46 PM
I guess you are trying to access variables inside BADI which are not available as Import/Export parameter of BADI. IF these variables are global
variables of the program then you can read this varaibles inside BADI by use of field symbols.
Field-symbol <fs> type any,
Assign ( ' (Program name)variable' ) to <fs>. --- program name is main program of your transaction & variable is the data you want to access.
In <FS> you will get the variable data.
Thanks,
Pawan
06-06-2011 2:13 PM
Assign ( ' (Program name)variable' ) to <fs>. --- program name is main program of your transaction & variable is the data you want to access.
In <FS> you will get the variable data.
This will work only if the variables are "Global" & the program is loaded in the internal memory when the BAdI is executed!
BR,
Suhas
PS: I agree with what Chen has mentioned. If you need better & more detailed responses, you need to provide more info.
06-08-2011 12:08 PM