Application Development 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: 

Issue Related to Module pool

Former Member
0 Kudos

Hi,

I have issue related to module pool Prog.

Actually i have one screen[Dialog] in that i am having one field <b>License No</b> as input enabled.

In that <b>License No</b> field when i press <b>F4</b>

i am using one Function module called <b>REUSE_ALV_POPUP_TO_SELECT</b> to populate some fields in it.

In <b>SE51</b> i called that code as below.

<b>PROCESS ON VALUE-REQUEST.

FIELD v_zzexgen MODULE f4_help_for_zzexgen.</b>

Now when i select one row/record from all the populated records it is filling only value into <b>License No[v_zzexgen]</b> , There in the same screen i am not able to get the values for other fields like <b>v_modco,v_gennr</b> etc..

Though they are in populated screen.

Actually after calling <b>POPUP</b> F.M i had written follow code:

READ TABLE i_pdata INDEX k_selfield-tabindex.

<b> IF sy-subrc EQ 0.

  • Then move all the fields of selected record into 9002 screen

v_zzexgen = i_pdata-zzexgen.

v_zzgeart = i_pdata-zzgeart.

v_modco = i_data-modco.

v_zzgmaxw = i_pdata-orgamt.

v_zzgaufw = i_pdata-conamt.

ENDIF.</b>

Can anybody tell me what is the issue out here for not filling other fields.

What is the reason for populating only one field when i am getting other field values also to be populated!

Thanks in advance.

Thanks & Regards,

Rayeez.

1 ACCEPTED SOLUTION

abdul_hakim
Active Contributor
0 Kudos

Hi shaik,

use the fm <b>F4IF_INT_TABLE_VALUE_REQUEST</b> also check the demo code in the transaction ABAPDOCU.

Cheers,

Abdul Hakim

12 REPLIES 12

Former Member
0 Kudos

initially, ur selecting one license no. for this u are fetching data and displaying in 9002 screen.

so, the read statement should include even the license number as key field.

also, the 9002 screen field attributes defined should be used while moving the data.

0 Kudos

Hi,

<b>Actually in 9002 Screen initially only one field will be shown to user - License No.</b>

There if i press <b>F4</b> it will populate some fields[EXGEN,gennr,modco,etc using F.M <b>[REUSE_ALV_POPUP_TO_SELECT]</b> those populated values need to be come and fell in other fileds in screen 9002 which now will be shown to user.

<b>NOw i am not getting values into other filds except[EXGEN-License No]</b>

I want to know why i am not able populate other fields!

Thanks,

Rayeez.

abdul_hakim
Active Contributor
0 Kudos

Hi shaik,

use the fm <b>F4IF_INT_TABLE_VALUE_REQUEST</b> also check the demo code in the transaction ABAPDOCU.

Cheers,

Abdul Hakim

0 Kudos

Hi,

Can anybody tell me how to populate other fields when i press F4 on some other filed.

Multiple field filling i want from populated values.

Can anybody solve my issue.

Thanks & Regards,

Rayeez.

0 Kudos

Hi Rayeezuddin,

u've to use the FM DYNPRO_VALUES_UPDATE for the remaining fields to get updated

0 Kudos

Hi,

Try using FM

DYNP_VALUES_UPDATE

DYNP_UPDATE_FIELDS (Helpful in POV)

Regards,

Shashank

vinod_gunaware2
Active Contributor
0 Kudos

call function <b>'DYNP_GET_STEPL'</b>

importing

povstepl = step_line

exceptions

stepl_not_found = 1

others = 2.

clear: ltab_fields.

refresh : ltab_fields.

ltab_fields-fieldname = 'ZMM_TABLE-TABNAME'.

ltab_fields-fieldvalue = t_f4_table-tabname.

ltab_fields-stepl = step_line.

append ltab_fields.

ltab_fields-fieldname = 'ZMM_TABLE-FLDNAME'.

ltab_fields-fieldvalue = t_f4_table-fieldname.

<b> ltab_fields-stepl = step_line.</b>

append ltab_fields.

ltab_fields-fieldname = 'ZMM_TABLE-VALUE'.

ltab_fields-fieldvalue = t_f4_table-fieldtext.

ltab_fields-stepl = step_line.

append ltab_fields.

call function <b>'DYNP_VALUES_UPDATE'</b>

exporting

dyname = lc_dyname

dynumb = lc_dynumb

tables

dynpfields = ltab_fields

exceptions

others = 8.

commit work and wait.

OR u have to use<b> SET PARAMETERS ID</b>

IN <b>PAI</b>

regards

vinod

0 Kudos

HI All,

Thanks for all those great replies.

The F.M <b>DYNP_UPDATE_FIELDS</b> working but for Char type fields only.

But i have 3 fields which are CURR fields.

Those are not getting updated.

Can anybody tell me why!

once again Thanks for those replies.

Thanks & Regards,

Rayeez.

0 Kudos

Hi All,

Here problem i am getting is

<b>As the Target table & field name in F.M 'DYNP_VALUES_UPDATE' is DYNREAD-DYNFIELDVALUE which is of type CHAR so i am not able to move the CURR values into it.

Can anybody sujjest how i can pass CURR values to CHAR and inturn able to display them on screen using Above F.M.</b>

Thanks & Regards,

Rayeez.

0 Kudos

Hi,

Define a charecter variable and then write your currency field value to it.

ex.

data lv_curr(14).

write curr to lv_curr.

Now use lv_curr in the FM.

Regards,

Shashank

Former Member
0 Kudos

hi,

as dynpfields-fielvalue is a 132 char field it can accept the currency value. you need to delete the leading spaces and latter the value can be viewed.

Jagath.

0 Kudos

Hi,

Thanks for all those replies it is now working perfectly.

I have assigned points.

Thaanks & Regards,

Rayeez.