‎2006 Dec 07 4:25 AM
TABLES: V_T042E.
DATA: s_zwels_con(3).
SELECT-OPTIONS: s_zwels FOR V_T042E-ZLSCH NO INTERVALS,"payment methods
******************** I N I T I A L I Z A T I O N *******************
INITIALIZATION.
*************** A T S E L E C T I O N S C R E E N **************
AT SELECTION-SCREEN.
CONCATENATE s_zwels INTO s_zwels_con SEPARATED BY SPACE.This is the code I tried for multiple selection of Payment Methods.This doesnot display the multiple values selected on selection screen.
Later in program these values will be reflected in Payment Methods in BDC recording using F110 transaction.
But this code is giving an error :
Unable to interpret "S_ZWELS". Possible causes of error: Incorrect spelling or comma error.
Please can any help in rectifying the current method or any other method of mutliple selection for Payment methods on selection screen .
‎2006 Dec 07 5:29 AM
Thanks guys ,
But how can I make all the values selected in the ITAB into a variable For Example:
ITAB output =
a
b
d
I want it in a variable i.e.
payment methods:<u>abc</u>
‎2006 Dec 07 4:30 AM
Hi,
types : begin of ty,
zwels_con type v_t042e-zlsch,
end of ty.
data itab type standard table of ty.
data wa type ty.
loop at s_zwels.
wa-zwels_con- = s_zwels-low.
append wa to itab.
endloop.
Now your itab contain the multiple values.
‎2006 Dec 07 4:39 AM
u have to put like this only
<b>SELECT-OPTIONS: s_zwels FOR V_T042E-ZLSCH NO INTERVALS
"payment methods</b>
here u have to loop then only u will get desired o/p
loop at s_zwels.
endloop.
but its not the complete solution.
Regards
Prabhu
‎2006 Dec 07 4:55 AM
Hi,
Try to use single field of s_zwels not the entire work area.
and loop into the s_zwels.
BR,
Ravi
‎2006 Dec 07 5:29 AM
Thanks guys ,
But how can I make all the values selected in the ITAB into a variable For Example:
ITAB output =
a
b
d
I want it in a variable i.e.
payment methods:<u>abc</u>
‎2006 Dec 07 5:39 AM
Hi,
data v1(200).
v1 =''.
Loop at itab into wa.
concatenate v1 wa-zwels_con into v1.
endloop.
write v1.
Kindly reward points by clicking the star on the left of reply,if it helps.If your problem is solved,kindly close the thread by clicking blue star button against the reply which helped you.