on 06-13-2014 12:47 AM
Hi Friends
I have been trying to update long text through DEBMAS and passing Header data to structure e E1KNA1H and Item data to E1KNA1L. The issue i am facing is when more than one text line is there for a text_Id,the last line is the only one which gets written ie in the below example only the line "Yes its working" gets updated
I have tried with different combination of TDFORMAT like =, /, *, /= etc without any luck .Any help appreciated .
The data prepared is as below
OBJ_ID,TDFORMAT,LONG_TXT
0000401012,, This is a sample text to upload multiple lines
0000401012,/,Yes its working
Mapping Used is as below
E1KNA1H-TDOBJECT
Rule Type: Constant
E1KNA1H-TDOBJECT = 'KNA1'.
E1KNA1H-TDNAME <=== SRC_DEBMAS_TXT-OBJ_ID
Rule Type: Transfer (MOVE)
E1KNA1H-TDNAME = SRC_DEBMAS_TXT-OBJ_ID.
E1KNA1H-TDID
Rule Type: Constant
E1KNA1H-TDID = '0005'.
E1KNA1H-TDSPRAS
Rule Type: Constant
E1KNA1H-TDSPRAS = 'E'.
E1KNA1L-TDFORMAT <=== SRC_DEBMAS_TXT-TDFORMAT
Rule Type: Transfer (MOVE)
E1KNA1L-TDFORMAT = SRC_DEBMAS_TXT-TDFORMAT.
E1KNA1L-TDLINE <=== SRC_DEBMAS_TXT-LONG_TXT
Rule Type: Transfer (MOVE)
E1KNA1L-TDLINE = SRC_DEBMAS_TXT-LONG_TXT.
Hi Folks
I would just like to update that I got this corrected .
The mistake I was doing was defining the HDR and DTL in the same source file and this was causing 2 Text header segments(E1KNA1H) to be created for the same Customer Master Record and hence the second Idoc segment was overwriting the data put by first segment .
Now i changed to define 2 separate source files one for header with only OBJ_ID and another source file with OBJ_ID,TDFORMAT,LONG_TXT which inturn only produced one E1KNA1H and 2 E1KNA1L segments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.