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

error using RFBIBL00

Former Member
0 Likes
672

Hello

I'm using programm RFBILB00 for a batch input session with transaction FBB1.

To create the file, I think I've done everything the way it should be,but I keep getting this error message: "Doc. 1 record 1: Invalid record type."

Here's my source:

PERFORM init_bgr00 IN PROGRAM rfbibli0 USING ws_bgr00.

ws_bgr00-stype = k_0.

ws_bgr00-group = p_batch.

ws_bgr00-mandt = sy-mandt.

ws_bgr00-usnam = sy-uname.

ws_bgr00-xkeep = k_x.

ws_bgr00-nodata = k_sl.

TRANSFER ws_bgr00 TO p_output.

PERFORM init_bbkpf IN PROGRAM rfbibli0 USING ws_bbkpf.

ws_bbkpf-stype = k_1.

ws_bbkpf-tcode = 'FBB1'.

ws_bbkpf-bldat = sy-datum.

ws_bbkpf-budat = ws_cobk-budat.

ws_bbkpf-blart = k_we.

ws_bbkpf-bukrs = p_bukrs.

ws_bbkpf-waers = ws_coep-twaer.

ws_bbkpf-xblnr = ws_bkpf-xblnr.

ws_bbkpf-bktxt = w_txt.

ws_bbkpf-sende = k_sl.

TRANSFER ws_bbkpf TO p_output.

PERFORM init_bbseg IN PROGRAM rfbibli0 USING ws_bbseg.

ws_bbseg-tbnam = 'BBSEG'.

ws_bbseg-newbs = 40.

ws_bbseg-wrbtr = 0.

ws_bbseg-dmbtr = 1000.

ws_bbseg-ebeln = ws_coep-ebeln.

ws_bbseg-ebelp = ws_coep-ebelp.

ws_bbseg-gsber = ws_coep-gsber.

ws_bbseg-matnr = ws_coep-matnr.

ws_bbseg-werks = ws_coep-werks.

ws_bbseg-sgtxt = ws_coep-sgtxt.

ws_bbseg-vbund = ws_coep-vbund.

ws_bbseg-sende = k_sl.

TRANSFER ws_bbseg TO p_output.

Can anyone help me please.

Thanks

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
541

BBSEG needs an STYPE as well, "2" in this case.

Thomas

2 REPLIES 2
Read only

ThomasZloch
Active Contributor
0 Likes
542

BBSEG needs an STYPE as well, "2" in this case.

Thomas

Read only

0 Likes
541

It worked, I'm no longer getting this error message. Thank you.