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

Creating input fields, checkboxes on screen dynamically

Former Member
0 Likes
1,697

Hi,

now i came to know how to open a thread, thanx singh..

my problem is to create input fields for material number, mbrsh,mtart,meins for all the materials i hav in my internal table in program.

actually i created this fields for 80 materials, but the problem is it may exceed depending on the selection. so according to selections made in first screen and hit enter, the next screen should disply all the materials and corresponding input fields. hope u hav understood my problem.

its very urgent. plz help me if anyone has come across this in past..

Kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,445

Hi Kumar;

Use function code to checkboxes and radio buttons. So that you can control dynamic screen modification directly.

Please go to below link for details.

http://help.sap.com/saphelp_47x200/helpdata/en/e6/83a0375b5dd003e10000009b38f8cf/frameset.htm

if it solved ur problem pls put marks..

Cheers...

Afsal

11 REPLIES 11
Read only

Former Member
0 Likes
1,445

go thru the sample to screen input fields dynamically.

DEMO_LIST_FORMAT_INPUT

for checkbox just write the field as checkbox

write itab-check as checkbox.

regds

gv

Read only

Former Member
0 Likes
1,445

instead of worrying about creating these fields dynamically on a screen....will the table control not suffice for your requirement....

since u already have ur materials in an internal table, u can have some columns in the internal table as per ur required input fields...

suppose u have ur 80 materials in internal table itab1. if i m getting u correctly then u need to get further data for these 80 materials...

then either in the same table or a different table have the other fields as columns against the materials already present....

the structure will be ...matnr, mbrsh, mtart, meins....as desired...

the table control for this internal table could look like ...

MATNR MBRSH MTART MEINS

001 -


-


-


002 -


-


-


003 -


-


-


004 -


-


-


and so on

does this sound sensible to you...or i have horribly misunderstood you??

rgds,

PJ

Read only

0 Likes
1,445

sorry priyank,

i know that it canbe possible through table control but its not the requirement,

and venkat i dint get ur solution. can u reply me clearly..

plz.

Kumar

Read only

0 Likes
1,445

check out this FM

FREE_SELECTIONS_DIALOG

Regards

Raja

Read only

0 Likes
1,445

as raja said u can use FREE_SELECTIONS_DIALOG for dynamic screen..

look in to the pgm to RFBKLOC1 for further infomation.

regards

gv

Read only

0 Likes
1,445

Raja, thanx for ur reply,

but i dont think so it will work, actually i hav few records in internal table, depending on that these records should display in next screen in individual input fields(like we create on a screen). and main thing it is not a selection screen.

Kumar

Read only

0 Likes
1,445

sorry all,

still i didnt get what i want.

but if anyone has solution plz let me know..

Kumar

Read only

0 Likes
1,445

can u explian ur requirements in detail ?

Read only

0 Likes
1,445

See,

ihav 5 fields in internal table(checkbox,MATNR,MBRSH,MTART,MEINS)(no.of records may change depending on selection screen).

i want to present this data in the form of input fields on the next screen.(like we create fields on screen in screen painter).

i want this requirement, hope this is clear to u.

plz reply me soon..

Kumar

Read only

0 Likes
1,445

hope without using table control or tablestrip it is not possible..

regards

gv

Read only

Former Member
0 Likes
1,446

Hi Kumar;

Use function code to checkboxes and radio buttons. So that you can control dynamic screen modification directly.

Please go to below link for details.

http://help.sap.com/saphelp_47x200/helpdata/en/e6/83a0375b5dd003e10000009b38f8cf/frameset.htm

if it solved ur problem pls put marks..

Cheers...

Afsal