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

Problem with selection-screen

Former Member
0 Likes
470

hi i have a problem with selection screen.

i have two input parameters.

say pr_matnr

pr_maktx

i need to get automatically text for that material .some one can help me regardingf this

5 REPLIES 5
Read only

michael_goeck
Product and Topic Expert
Product and Topic Expert
0 Likes
452

What made you post this question in this thread?

Please read the forum guidlines: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fe6cf0c7-0501-0010-dda5-f3a89106ee84">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fe6cf0c7-0501-0010-dda5-f3a89106ee84</a>

Read only

Former Member
0 Likes
452

Thread have been branched and move to the correct forum...

Greetings,

Blag.

Read only

VXLozano
Active Contributor
0 Likes
452
AT SELECTION-SCREEN ON p_matnr.
SELECT SINGLE maktx
  INTO pr_maktx
  FROM MAKT
  WHERE matnr = pr_matnr
    AND spras = sy-langu.

Edited because I forgot to add the language, thanks Sriram Ponna for remember it

Message was edited by:

Vicenç Lozano

Read only

Former Member
0 Likes
452

At selection screen on pr_matnr.

>select the text from appropriate table and

assign to pr_maktx table>

Read only

Former Member
0 Likes
452

Hi,

You can use the below code :

parameter : matnr like mara-matnr,

maktx like mara-maktx.

at selection on maktc.

call function 'HAZMAT_MATNR_GET_TEXT'

exporting

I_MATNR = matnr

I_LANGU = 'EN'.

IMPORTING

E_MAKTX = maktx.

Thanks,

Sriram Ponna.