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

SO_NEW_DOCUMENT_ATT_SEND_API1

Former Member
0 Likes
290

Hello,

My requirement is there is a file placed in the application server 'IN folder'. I will read the entries in those file and post the data in SAP using transaction F-02. Once the documents are posted , it will generate three files, one for successful posting , another containing error texts and 3rd one containing error file. I have to write the outputs in the application server in 'OUT' folder. After the BDC , I have to send those files through email . I am using function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' for that.

My development is almost over. The problem is in those files, the first line is coming blank. All the data's are coming correctly. I also want to know the importance of HEAD_NUM and HEAD_START parameter in the FM.

Regards

D. Mallick

1 REPLY 1
Read only

Former Member
0 Likes
259

Hi,

HEAD_START

Requires the start row of the table OBJECT_HEADER, as of which the specific header data of the object is stored.

HEAD_NUM

Requires the number of rows in the table OBJECT_HEADER that contain specific header data for the object. The relevant rows are arranged in a block and defined uniquely together with the entry in HEAD_START.

Check if the header setting can help for you .

Thanks,

Rahul