‎2008 May 15 1:43 PM
Hi Friends:
I'm using the following submit command:
SUBMIT rbdmidox AND RETURN
EXPORTING LIST TO MEMORY
WITH mestyp = p_mat
material = ????
actually I've an internal table t_bdcps which contanis the list of materials. Now the program rbdmidox has the material as select option on the selection screen. Please tell me how to pass the material list of internal table t_bdcps into that select option. I though od defining a new table with 4 things : sign, option, low, high....then passing the values from t_bdcps to the new internal table..
Please help me with the best way..If my thinking is correct..plz give me the syntax of declaration of table with sign, option, low, high & passing the values from t_bdcps to new internal table.
Please help me on this issue on haste basis. Suitable points will be rewarded .
Regards:
Gaurav
‎2008 May 15 1:53 PM
Hi
U've onlu one solution: use a range.
RANGES: R_MATNR FOR MARA-MATNR.
LOOP AT T_BDCPS.
R_MATNR(3) = 'IEQ'.
R_MATNR-LOW = T_BDCPS-MATNR.
APPEND R_MATNR.
ENDLOOP.
SUBMIT RBDMIDOX EXPORTING LIST TO MEMORY
WITH MESTYP = P_MAT
WITH MATERIAL IN R_MATNR AND RETURN.But u should consider there's limit of number of record can be inserted in a range, if the records are too much, a dump can occur in WHERE condition while selecting.
I don't remember if this limit depends on the server, but it usually is good thing to append max 1000 hits.
Max
‎2008 May 15 1:51 PM
use this: ... WITH SELECTION-TABLE rspar
If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
SELNAME (length 8),
KIND (length 1),
SIGN (length 1),
OPTION (length 2),
LOW (length 45),
HIGH (length 45).
To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
‎2008 May 15 1:53 PM
Hi
U've onlu one solution: use a range.
RANGES: R_MATNR FOR MARA-MATNR.
LOOP AT T_BDCPS.
R_MATNR(3) = 'IEQ'.
R_MATNR-LOW = T_BDCPS-MATNR.
APPEND R_MATNR.
ENDLOOP.
SUBMIT RBDMIDOX EXPORTING LIST TO MEMORY
WITH MESTYP = P_MAT
WITH MATERIAL IN R_MATNR AND RETURN.But u should consider there's limit of number of record can be inserted in a range, if the records are too much, a dump can occur in WHERE condition while selecting.
I don't remember if this limit depends on the server, but it usually is good thing to append max 1000 hits.
Max
‎2008 May 15 1:59 PM