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

Dynamic Selection based on checkbox - FBL5N t-code customization

Former Member
0 Likes
1,838

Hi Experts!

Kindly help me out with the following:

We are creating a customized report by copying the t-code FBL5N functionality. On the selection screen we have Dynamic Selections (Shift+F4) which gives a new selection screen which consists of some fields under Customer Master, Company code and Documents.

Now our requirement is that, we have our own checkbox on the selection screen. Now when this checkbox is checked, we need to get some specified values (based on our own data) into the field Document Type which is present under Documents in the dynamic selection.

Is this any way possible? If yes, please help me with the way or some ideas. Kindly go through the standard program once.

Thanks a lot.

Regards,

Seenu

10 REPLIES 10
Read only

Former Member
0 Likes
1,687

what is the problem?

wont a if block will help you?

if p_chkbox = 'X'.

select xyz from abc into table it_abc where xyz = lmn.

endif.

Read only

0 Likes
1,687

Hi Sowmya,

The first problem is, selecting a checkbox won't take the control to at selection-screen output, so that it can be filled and shown and the other problem is that it has become so confusing to find which field is meant for Document Type, so that I can fill it. I thought that this functionality is not possible, but just wanted to check before confirming on something.

Hope I am clear.

Thanks,

Seenu

Read only

0 Likes
1,687

hi srini,

first thing is checkbox responds to at selection screen out put.

PARAMETERS : p1 as CHECKBOX USER-COMMAND abc.

second things is document type can be fetched from mhnd table

Read only

Former Member
0 Likes
1,687

Hi,

This is a dynamic select-option which is coming from the LDB being used you can try like below in the copied program at event


at selection-screen output.
 if checkbox = 'X'.
  %%DYN009-LOW = 'VALUE'.
  %%DYN009-sign = 'I'.
  %%DYN009-option = 'EQ'.
  append %%DYN009.
endif.

Himanshu

Read only

0 Likes
1,687

Hi,

Thanks for the replies. Let me try these and get back to you if I face any problems. Thanks a lot.

Read only

0 Likes
1,687

Hi,

I am sorry to say that i couldn't understand how this Logical Database works. Can anybody help me with this? How can I know the field name that is being used for Document Type? Please help me out.

Thanks a lot.

Read only

0 Likes
1,687

srini,

have you tried the method i suggested?

PARAMETERS : p1 as CHECKBOX USER-COMMAND u1.

at selection-screen output.
loop at screen  
  if p1 = 'X'.
     ....
     ....
     ....
   modify screen.
  endif.
endloop.

Read only

0 Likes
1,687

Hi Soumya,

I tried this and hence got the control once I selected the checkbox. This doubt is solved for sure. Now my doubt is on how the Document Type should be updated with the values.

Can somebody please help me out?

Thanks,

Seenu

Read only

0 Likes
1,687

Hi,

Based on the declarations in LDB it would create dynamic selection screen based on user selection. So you can try to fill the select-options at selection-screen output event only just append the entries to the range and that should do it.

Regards,

Himanshu

Read only

0 Likes
1,687
parameters: doc_type type BLART modif id m1.
at selection-screen output.
  loop at screen.
   if screen-group1 = 'M1'.
     if p_chk <> 'X' and 
           screen-active = 0.
     else.
          screen-active = 1.
     endif.
     modify screen.
    endif.
   endloop.

this will make the document type field active, when you tick the chk box. and pass the values to the document type as you need