Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

How load several texts with one line txt

$
0
0

Hi,

 

I want to load multipl texts in XD01 with one ligne of my text file.

 

I created a LSMW in IDOC with Debmass - Debmass07.

 

I met a problem with two structures : E1KNA1H (with TDID) and E1KNA1L (with TDLINE). I need to create in maximum 4 texts (TDLINE) with 4 differents ID (TDID).

 

I created a counter for TDID which i executed 4 times :

 

structure E1KNA1H :

 

If counter = 1.

 

E1KNA1H-TDID = 'xxxx'.

 

ENDIF.

 

If counter = 2.

 

E1KNA1H-TDID = 'xxx1'.

 

ENDIF.

 

 

[...]

 

structure : E1KNA1L

 

If E1KNA1H-TDID = 'xxxx'.

E1KNA1L-TDLINE = MYTXTFILE-TDLINE.

ENDIF.

If E1KNA1H-TDID = 'xxx1'.

E1KNA1L-TDLINE = MYTXTFILE-TDLINE1.

ENDIF.

If E1KNA1H-TDID = 'xxx2'.

E1KNA1L-TDLINE = MYTXTFILE-TDLINE2.

ENDIF.

If E1KNA1H-TDID = 'xxx3'.

E1KNA1L-TDLINE = MYTXTFILE-TDLINE3.

ENDIF.

 

The problem was the two structure don't run in the same time so i always load the last text (TDLINE3) because my counter got 4 when the second structure start....

 

Any ideas ?


Ty.


Viewing all articles
Browse latest Browse all 3125

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>