Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 2129

add a field to structure from program

$
0
0

Hi Folks,

 

I have a structure - ZSDT_SO_BACKLOG_DCRESTR having some fields.

 

My data declaration -

 

DATA lt_data_out  TYPE zsdt_so_backlog_dcrestr.
 DATA ls_data_out  TYPE LINE OF zsdt_so_backlog_dcrestr.

I need to add one more field into internal table LT_DATA_OUT without inserting that inside structure - ZSDT_SO_BACKLOG_DCRESTR.

 

In the below code LV_COMBU is the field. My output is ALV and my final internal table is LT_DATA_OUT.

 

LOOP AT lt_data_out INTO ls_data_out.            READ TABLE lt_hier INTO ls_hier WITH KEY prctr = wa_marc-prctr.       IF sy-subrc = 0.         MOVE ls_hier-level3 TO lv_combu.       ENDIF.   ENDLOOP.

How to put LV_COMBU inside LT_DATA_OUT.

 

Thanks for your help.

 

Babu


Viewing all articles
Browse latest Browse all 2129

Trending Articles