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: 

Passing values back to screen with user exit

Former Member
0 Kudos
736

Hi,

Is it possible to pass value back to the screen field in the user exit (function module exit) if the function does not have the importing parameter of that particular field?

11 REPLIES 11

Former Member
0 Kudos
233

Hi Mil,

If it is not part of the importing parameter then you can't pass it back.

Regards,

Atish

0 Kudos
233

Hey Atish,

I believe you have tried to help me solve 1 of my issue yesterday but it's still unsolved. I have problem finding the exit which will fire after I select the F4 entry in one of my field. Do you know of any exits which is related to IW51 or service notification?

0 Kudos
233

This user exit will trigger at IW51/QM01 Transaction when user press F4 on screen :

Enhancement : QQMA0015:

Function module :EXIT_SAPLIQS0_002

I have done this user exit earlier and let me know waht is your requirement.

Reward Points if it is helpful

Thanks

Seshu

0 Kudos
233

Hi Seshu,

I'm creating the notification type ER (external repair). I guess the screen is different with what you are using. I need to repeat what I have type in one of my other post. In the screen, I have 2 fields (A & B). Field A is blank and field B contains a dropdown (F4). Once user select an entry from Field B (by pressing F4 or selecting from the dropdown), I would need to perform some logic and populate Field A with sumthing.

Field A - VIQMEL-ZZNEWMATNR

Field B - VIQMEL-ZZSVRPOS

The problem is, I can't find an exit which enable me to populate the value in Field A. There's an exit, but it happens before the F4 selection for Field B. It means, I can't find any exit after the F4 event of Field B.

I'm really desperate in solving this issue. Hope you could help me. Thanks in advance.

Former Member
0 Kudos
233

Can the FM DYNP_VALUES_UPDATE be used to autopopulate the screen field with value?

0 Kudos
233

Yes ,it does autopopulate ....

0 Kudos
233

Hi Seshu,

I have tried the FM, but it still does not populate the field with value. Below is my code:

THis is the code of the Include ZXQQMU32 from function exit EXIT_SAPLIQS0_013.

-


TYPES: BEGIN OF T_IN_OUT,

ZZASNUM LIKE Z10_INPUT_OUT_PN,

ZZOUTPUT_PN LIKE Z10_INPUT_OUT_PN,

END OF T_IN_OUT.

DATA: V_SERVICE_MASTER LIKE VIQMEL-ZZSRVPOS,

V_MATNR LIKE VIQMEL-ZZOLDMATNR,

V_DYNAME LIKE D020S-PROG VALUE 'SAPLIQS0',

V_DYNUMB LIKE D020S-DNUM VALUE '7200',

V_FIELD TYPE C,

K_IN_OUT TYPE T_IN_OUT,

I_IN_OUT TYPE TABLE OF T_IN_OUT,

K_DYNPFIELDS LIKE DYNPREAD,

I_DYNPFIELDS TYPE TABLE OF DYNPREAD.

IF VIQMEL-ZZSRVPOS IS NOT INITIAL.

V_SERVICE_MASTER = VIQMEL-ZZSRVPOS.

  • Get outout part number using primary key ZZASNUM (service number)

SELECT ZZOUTPUT_PN

FROM Z10_INPUT_OUT_PN INTO TABLE I_IN_OUT

WHERE ZZASNUM EQ V_SERVICE_MASTER.

IF SY-SUBRC IS INITIAL.

K_DYNPFIELDS-FIELDNAME = 'ZZNEWMATNR'.

K_DYNPFIELDS-FIELDVALUE = VIQMEL-ZZOLDMATNR.

APPEND K_DYNPFIELDS TO I_DYNPFIELDS.

CALL FUNCTION 'DYNP_VALUES_UPDATE'

EXPORTING

DYNAME = V_DYNAME

DYNUMB = V_DYNUMB

TABLES

DYNPFIELDS = I_DYNPFIELDS

  • EXCEPTIONS

  • INVALID_ABAPWORKAREA = 1

  • INVALID_DYNPROFIELD = 2

  • INVALID_DYNPRONAME = 3

  • INVALID_DYNPRONUMMER = 4

  • INVALID_REQUEST = 5

  • NO_FIELDDESCRIPTION = 6

  • UNDEFIND_ERROR = 7

  • OTHERS = 8

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

ELSE.

EXIT.

ENDIF.

ENDIF.

Former Member
0 Kudos
233

I'm kinda confuse because I was told that if the function module exit doesn't pass back the structure via the importing parameter, there's no way to pass value back to the screen. And yet some mentioned that FM DYNP_VALUES_UPDATE can be used to populate the screen field. Can anyone help to clear things up for me a bit? Anyway, I have no luck in using DYNP_VALUES_UPDATE to populate the screen field. The field just doesn't want to be populated...

0 Kudos
233

i will tell you tomorrow and i have done earlier..

0 Kudos
233

Really appreciate that, Seshu

0 Kudos
233

Hi Mil Nivla,

where u able to pass the values back to screen with user exit. I am in the same scenario I need to pass vendor batch to QM01 after entering Material and Batch and hit enter..

The FM DYNP_VALUES_UPDATE is used for F4 Help Functionality. I tried to use it to pass the values to the screen but it didnot work out.

Seshu: If you can help out in this issue that would be great.

Thanks and really appreciate your help in this concern.

regards,

chaithanya