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: 

SY-SUBRC returns 4 in Module Pool Program

syed_haider
Member
0 Kudos
366

Mian Module Pool Program:

PROGRAM ZDEMO_HAI_MODULE_POOL. DATA: v_matnr TYPE matnr, v_maktx TYPE maktx. MODULE GET_MAKTX INPUT. SELECT SINGLE maktx from makt into v_maktx WHERE matnr Eq v_matnr. ENDMODULE. Corresponding Screen Flow logic: PROCESS AFTER INPUT. MODULE GET_MAKTX.

why it is not showing any data in v_maktx field? Please tell

2 REPLIES 2

RaymondGiuseppi
Active Contributor
0 Kudos
285

Use the "code" function to create a code block in your post, then paste your code without formatting into this block.

RaymondGiuseppi
Active Contributor
285
  • You forgot to use language key when reading MAKT.
  • Is v_maktx available for dynpro (defined in top include, global area)
  • Try to move your code to PBO