Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABAP code explanation for FlatFile Load in SAP BW

Hello Guys,

I am trying to automate flat file and using following document as reference.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/603efe5a-b9d4-2e10-67a5-f16e9aa6aab8?QuickLink=index&…

In this document on Page no.4 author has given a sample code. I have made that code my basic framework. My table has 13 columns and I declared them in the first part. I get stuck after the loop. All I need to know is am I supposed to do following steps in my code for all the 13 columns (I thinkl yes, just need confirmation)

"WHILE WA1-MAT+J(1) <>','.

CONCATENATE STR WA1-MAT+J(1) INTO STR.

J = J + 1.

ENDWHILE.

WA_FINAL-MAT = STR.

CLEAR STR.

J = J + 1.

WHILE J < L.

CONCATENATE STR WA1-MAT+J(1) INTO STR.

J = J + 1.

ENDWHILE.

WA_FINAL-COMPANY = STR.

CLEAR STR.

APPEND WA_FINAL TO ITAB_FINAL.

J = 0.

INSERT INTO ZFFILE VALUES WA_FINAL.

ENDLOOP."


Can someone please help me understand this portion.


Regards

Kavitha

Not what you were looking for? View more on this topic or Ask a question