‎2008 May 09 9:32 AM
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
‎2008 May 09 9:35 AM
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.
‎2008 May 09 9:39 AM
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
‎2008 May 09 9:45 AM
Ur code looks fine. Do a debugger and check whether the field is getting populated. It could be some small error.