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

Deep Structure to internal table

Former Member
0 Likes
2,450

Hi ,

I have a deep structure "LBBIL_INVOICE"

iam using this in smartforms

HD_GEN
HD_GEN_DESCRIPT
HD_ORG
HD_REF
HD_KOMK
HD_ADR
HD_PART_ADD
HD_CARD
HD_PAY
HD_KOND
HD_FIN
HD_TECH
HD_DOWNPAY
IT_GEN
IT_ADR
IT_PRICE
IT_KOND

these are some internal structure in deep structure

now i need some fields in IT_GEN and IT_REF to my custom internal table

how to create internal table and how to move the values to my internal table

Thanks

Surendra

Hi ,

I have a deep structure "LBBIL_INVOICE"

iam using this in smartforms

HD_GEN
HD_GEN_DESCRIPT
HD_ORG
HD_REF
HD_KOMK
HD_ADR
HD_PART_ADD
HD_CARD
HD_PAY
HD_KOND
HD_FIN
HD_TECH
HD_DOWNPAY
IT_GEN
IT_ADR
IT_PRICE
IT_KOND

these are some internal structure in deep structure

now i need some fields in IT_GEN and IT_REF to my custom internal table

how to create internal table and how to move the values to my internal table

Thanks

Surendra

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
883

Hello Surendra

This task is quite simple:


DATA:
  ls_billing_data   TYPE lbbil_invoice,
  ls_gen               LIKE LINE OF ls_billing_data-it_gen,  " or TYPE LBBIL_IT_GEN
  ls_ref                LIKE LINE OF ls_billing_data-it_ref.   " or TYPE LBBIL_IT_REF


LOOP AT ls_billing_data-it_gen INTO ls_gen.
...
ENDLOOP.

LOOP AT ls_billing_data-it_ref INTO ls_ref.
...
ENDLOOP. 

Regards

Uwe

Read only

Former Member
0 Likes
883

Come on this is really very basic abap knowledge.

you need some basic statments like loop, read, append, modify. I dont want to be a jerk, but really if you struggle on this one already i would propose to take some ABAP training before continuing to work on the system.