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 Input Help or Check Table in Custom Table

Former Member
0 Likes
1,784

Hi,

I created a custom table with two fields, field A & field B. Field A can have values like BUKRS, BELNR, BUDAT, GJAHR etc... Now how can I make Field B's input help or check table dynamic depending on the value of Field A?

For example

1.) Field A is BUKRS, when I press F4 in Field B a pop up with a list of company code should display. or Field A is BELNR, when I press F4 in Field B a pop up with a list of document number should display.

Regards,

Marc

Hi,

I created a custom table with two fields, field A & field B. Field A can have values like BUKRS, BELNR, BUDAT, GJAHR etc... Now how can I make Field B's input help or check table dynamic depending on the value of Field A?

For example

1.) Field A is BUKRS, when I press F4 in Field B a pop up with a list of company code should display. or Field A is BELNR, when I press F4 in Field B a pop up with a list of document number should display.

Regards,

Marc

5 REPLIES 5
Read only

Former Member
0 Likes
932

Hi,

Through programatically only its possible its not possible from SE11 while creating table...

in the program

declare these four fields as input parameters...

then

at selection-screen on value-request for field B.
if fieldA = 'BUKRS'.
  select query to fetch list of company codes
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'....." passing the values fetch from select query in 
" internal table
elseif fieldA = 'BELNR'.
  select query to fetch list of document
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'....." passing the values fetch from select query in 
" internal table
endif.

Regards,

Siddarth

Read only

0 Likes
932

Hi,

I think Shiddarth has given you good suggestion, go with it.

Thanks,

Krishna..

Read only

Former Member
0 Likes
932

Yes, but the requirement is maintaining the custom table using SM30. From there we need to have a dynamic F4 for Field B depending on the value of Field A.

Read only

0 Likes
932

An option..

Go to Table maintanence generator - Environment - Modifications - Events

Choose Appropriate Event. Form Name and Source code(U can write above suggested code within FORM ENDFORM in the newly created include) Keep Break points to identify

If suitable Events not available,

Creating POV in the flow logic of the TMG screen is an option (not sure on this..though)

Read only

Former Member
0 Likes
932

Not sure this will work , but you can give it a try :

Once the table maintenance is generated , you can go to the function group you created for this table maintenance, and you will find the screen generated as part of this.

You can edit this screen and add code as you wish, so you can try calling the search help function modules mentioned above based on conditions.

Mathews