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

Fields for flat file

jayant_kumar
Explorer
0 Likes
320

hi,

i am new to abap bapi so plz help me in a bapi po upload programm

i am fetch this programm from sap forums the table name and fields name are not refrence in it so plz tell me these fields are taken from which table and also tell field name i am not find the all fields name.

fields are

TYPES: BEGIN OF ty_output ,

partn_numb(10) TYPE n,"Customer Number 1

partn_role(2), "Partner function

sales_org(4), "Sales Organization

distr_chan(2), "Distribution Channel "vtweg

division(002), "DIVISION "spart

doc_type(4), "Sales Document Type "auart

purch_no(020), "Purchase order "bstnk

material(18), "MATERIAL "matnr

targetquantity(020), "Target quantity

reqqty(020), "Req quantity

reqdate(010), "req date

ref_1(012), "Ref

unload_pt(025),

END OF ty_output.

thanks and regards

jayant.

if u dont mind plz give me the flat files records for this

1 REPLY 1
Read only

Former Member
0 Likes
300

hi,

looking at the declaration, it seems that all the fields are custom and not refering to any of the table fields.

each field here is a character type and the numbers in the bracket indicate the length of the corresponding field.

an example of flat file record for this can be as follows.

abcdefghij,ab,abcd,ab,...(and so on)

here , (comma) indicates the field separator. instead of comma any other character (like TAB) can also be used based on your requirement.