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 in Module pool program

Former Member
0 Likes
483

Hi,

I am working on a module pool program.I have created a Input/Output field(Output only). I selected my records in an internal table. In PBO module i passed that internal table record to that screen Input/Output field.On execution the field value is not getting displayed in Input/Output field.

Can you please help me where i am doing wrong.

Regards,

Mukesh Kumar

3 REPLIES 3
Read only

Former Member
0 Likes
464

Can you post the code used in the PBO where you have populated the screen fields ?? I guess there is something missing or wrong in the code.

Read only

0 Likes
464

Hi,

I am using this simple code in PBO.

Internal table it_HEADER_DATA is populated in the main program. Data is present in the variable z_lfdnr_head. This is the name that i am using for Input/Output field.

FORM pbo_output .

DATA: lwa_header_data TYPE ty_header_data.

DATA: z_lfdnr_head TYPE zzfa_lfdnr_head.

READ TABLE it_header_data

INTO lwa_header_data

INDEX 1.

MOVE lwa_header_data-lfdnr_head TO z_lfdnr_head.

IF zgrid IS INITIAL.

SET PF-STATUS 'STANDARD'.

CREATE OBJECT zcontainer

EXPORTING

container_name = 'ZCONTAINER'.

CREATE OBJECT zgrid

EXPORTING

i_parent = zcontainer.

CALL METHOD zgrid->set_table_for_first_display

CHANGING

it_outtab = it_edit_data[]

it_fieldcatalog = it_fieldcatalog.

ELSE.

CALL METHOD zgrid->refresh_table_display

EXCEPTIONS

finished = 1

OTHERS = 2.

ENDIF. "IF zgrid IS INITIAL

ENDFORM. " PBO_OUTPUT

Read only

Former Member
0 Likes
464

Ur code looks fine. Do a debugger and check whether the field is getting populated. It could be some small error.