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

populating fields in table control automatically

akil_syed1
Explorer
0 Likes
2,655

Hi all,

I am developing the table control with wizard in module pool.

I have the table control structure as follows:

For Example:

ROLLNO        NAME      MOBILE NO             CITY           STATE

In above structure i have created the search help for roll no. So as the user clicks F4 on roll no,he gets roll no list ,and he selects appropriate roll no.

The requirement is after selecting the roll no, the other fields like name,mobile no,city and state should be populated automatically.

what has to be done in this scenario.

please provide suggestions in this issue.

Thanks in advance for ur help.

Regards,

Akil Syed.  

1 ACCEPTED SOLUTION
Read only

Chintu6august
Contributor
0 Likes
1,497

Hi,

use event PROCESS OF VALUE-REQUEST and to read the screen field values use DYNP_VALUES_READ.

refer the following link and meet your requirement..

Getting a input field populated on entering the value in one Input field - ABAP Development - SCN Wi...

thanks!!

6 REPLIES 6
Read only

Chintu6august
Contributor
0 Likes
1,498

Hi,

use event PROCESS OF VALUE-REQUEST and to read the screen field values use DYNP_VALUES_READ.

refer the following link and meet your requirement..

Getting a input field populated on entering the value in one Input field - ABAP Development - SCN Wi...

thanks!!

Read only

former_member241258
Active Participant
0 Likes
1,497

PROCESS BEFORE OUTPUT.


LOOP WITH CONTROL PMC_TC.

 
ENDLOOP.



PROCESS AFTER INPUT.

LOOP WITH CONTROL PMC_TC.


FIELD ROLLNO MODULE GET_DATA_OF_ROLLNO ON REQUEST. " here write logic for get                                                                                         Mobile,name, city and state


ENDLOOP



it will work

Read only

0 Likes
1,497

Hi Krishna Murthy,

Could u please elaborate me what sort of logic i need to write there.


Because already in PAI i have chain ...end chain  structure......


should i need to write the logic of FIELD ROLLNO MODULE GET_DATA_OF_ROLLNO ON REQUEST outside chain endchain or in that itself

Read only

0 Likes
1,497

Hi,

instead of using table control wizard, create table control at your own, then only you can apply such logics in precise ways.

thanks!!

Read only

Former Member
0 Likes
1,497

Hi akil,

in this case DYNP_VALUE_READ  will not work , this function module for dynamic selection of values and according to my knowledge in our requirement it is not required and my suggestion is.

in pai.

loop at it.

module select.

endloop.

in select ,

use F4IF_INT_TABLE_VALUE_REQUEST try this and let me know.

regards,

supreeth.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,497

In the PROCESS OF VALUE-REQUEST

  • Call the search help using F4IF_FIELD_VALUE_REQUEST.
  • You could use DYNP_VALUES_READ to read other values to add to F4 selection criteria (thru form CALLBACK_FORM)
  • After the call, select other fields from database if they are not returned by the help FM
  • Use DYNP_VALUES_UPDATE to update dynpro values
  • You use a table control, so you must also use DYNP_GET_STEPL to process current line

Regards,

Raymond