cancel
Showing results for 
Search instead for 
Did you mean: 

RFBIBL00 usage

Former Member
0 Kudos

I am hoping someone can help me out with the usage of RFBIBL00 with some sample code and tips. I am trying to submit the program with a flexible dsn generated from file_get_name with no success. Also a format for the subsequent submission of RSBDCSUB would be useful. Before I get suggestions for alternative methods, the need to park the document led to use of RFBIBL00 rather than Bapi's or Idocs.

Thanks,

Ken Ito

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ken

I think it depends on your business flow and how you want to manage it.

I think to use RFBIBL00 is a sample and easy way to post document if you have not automatic or semi-automatic management, becouse it needs a file in input (somebody has to transfer this file) or a program to find out the data and you have to decide when you elaborate it. The good thing is if something is wrong you can easly check by sm35.

The BAPI is like RFBIBL00, but it's a direct input so you can create something to manage errors.

The idocs is good if you want an automatic process.

This is an example for RFBIBL00:

  • Create session

perform fill_no_data using bgr00.

bgr00-stype = '0'.

bgr00-group = p_sess.

bgr00-mandt = sy-mandt.

bgr00-usnam = sy-uname.

bgr00-start = ' '.

bgr00-xkeep = 'X'.

bgr00-nodata = '/'.

transfer bgr00 to file.

  • Header data

perform fill_no_data using bbkpf.

bbkpf-stype = '1'.

bbkpf-tcode = 'FB01'.

move p_budat to bbkpf-bldat.

bbkpf-budat = p_docu.

bbkpf-blart = 'BG'.

bbkpf-bukrs = 'ZN01'.

bbkpf-waers = 'EUR'.

transfer bbkpf to file.

  • Item

perform fill_no_data using bbseg.

bbseg-stype = '2'.

bbseg-tbnam = 'BBSEG'.

bbseg-newbs = '40'.

bbseg-newko = wa_record-hkont.

write amount currency bbkpf-waers to bbseg-wrbtr.

bbseg-sgtxt = 'TEXT'.

transfer bbseg to file.

  • Next item

perform fill_no_data using bbseg.

bbseg-stype = '2'.

bbseg-tbnam = 'BBSEG'.

bbseg-newbs = '50'.

bbseg-newko = wa_record-hkont2.

write amount currency bbkpf-waers to bbseg-wrbtr.

transfer bbseg to file.

  • Create session

submit rfbibl00

with anz_mode = mode

with callmode = callmode

with ds_name = ds_name

with fl_check = test

with xinf = space

with xlog = xlog

with xpop = xpop and return.

  • Run sessiom

if elab = 'X'.

submit rsbdcsub exporting list to memory

with bis = sy-datum

with mappe = p_sess

with von = sy-datum and return.

endif.

form fill_no_data using p_structure.

field-symbols: <fs>.

do.

assign component sy-index of structure p_structure to <fs>.

if sy-subrc <> 0. exit. endif.

<fs> = '/'.

enddo.

endform. " FILL_NO_DATA

Max

Message was edited by: max bianchi

Message was edited by: max bianchi

vinothkumar_g
Advisor
Advisor
0 Kudos

Hi Max,

I am trying to upload the FB01 transaction thru this RFBIBL00. I saw your posting and u given some tips. can you send the code to generate batch input using this program RFBIBL00.

Its quite urgent.

Thanks in advance.

Regards,

vinoth.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ken,

I assume that you already read the documentation of this program. If not, that is a good start. With regards to the layout of the file, you can use RFBIBLT0 to generate a test file for you and using that as a template, you can create a file with your own data. Creating this file is always a painful task. Instead, why don't you try LSMW? You can still use RFBIBL00 there.

Srinivas

Former Member
0 Kudos

I feel stupid. I found the answer in the program itself.

  • Report RFBIBL01 aufrufen

SUBMIT RFBIBL01 WITH DS_NAME = DS_NAME

WITH FL_CHECK = FL_CHECK

WITH OS_XON = OS_XON

WITH CALLMODE = CALLMODE

WITH MAX_COMM = MAX_COMM

WITH PA_XPROT = PA_XPROT

WITH ANZ_MODE = ANZ_MODE

WITH UPDATE = UPDATE

WITH XPOP = XPOP

WITH XLOG = XLOG

WITH XINF = XINF

AND RETURN.

substituting '00' for '01' works.

Ken

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Don't feel stupid, feel smart for figuring it out!!!

Regards,

Rich Heilman

Former Member
0 Kudos

Hi,

This mail is in response to your replies in SDN.We have a critical issue regarding " Long Texts "(texts in accounting document).

1) Am using RFBIBL00( Direct Input method ) to transfer Accounting Documents.

2) I need to Update "Texts" both Header & line item for accounting document using Direct input method.

3)I tried to append a custom 'Z' include, that calls SAVE_TEXT function module, in program RFBIBL00 to save texts for the respective Accounting document.But the performance is very low.

4)If I use direct input program /SAPDMC/SAP_LSMW_IMPORT_TEXTS or /SAPDMC/SAP_LSMW_SXDA_TEXTS how will it save texts to document, before it is created , since we are still in LSMW that just generates .CONV file , but it might not create account document number, once the .Conv file goes to RFBIBL00, account document gets generated .

5)another major issue am encountering is , if one of a document fails (error) how about updating texts.How i send text to BDC in this case.

My queries are :

a) Is there any other way to update texts using Direct input method ?

b)Can I integrate, direct input program RSTXLITF with RFBIBL00, is that feasible, will i be able to save texts with out any performance issues ?

I would really appreciate if am given some suggestions or solutions for the above case.

Thanks alot in Advance !