Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Multiple selection for Payment Methods.

Former Member
0 Likes
932

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 .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
787

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>

5 REPLIES 5
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
787

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.

Read only

Former Member
0 Likes
787

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

Read only

Former Member
0 Likes
787

Hi,

Try to use single field of s_zwels not the entire work area.

and loop into the s_zwels.

BR,

Ravi

Read only

Former Member
0 Likes
788

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>

Read only

0 Likes
787

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.