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

Reg : Simulation in FB01

Former Member
0 Likes
1,159

Hi Guru's,

We have Custom program to post the document in FB01 using BDC.

For enahncement,we need to add two check box for Test run and providing output.

1) For Test Run, Posting should not happen,it is work like simulation.

2) For Providing output,we need to show the posted document in ALV,if we selected Test Run then it should show the simulation document in ALV.

Is it possible to simulate the document like in FB01 Simulation.?

Is there any function module to simulate the FI doucuments.?

Custom program used the following fields for psoting the document in FB01 using BDC.

belnr like bseg-belnr

buzei TYPE bseg-buzei

bschl TYPE bseg-bschl

kunnr like bseg-kunnr

matnr like bseg-matnr

bwkey like bseg-bwkey

bwtar like bseg-bwtar

werks like bseg-werks

bukrs like bkpf-bukrs

vbund like bseg-vbund

hkont like bseg-hkont

shkzg like bseg-shkzg

kostl like bseg-kostl

menge like bseg-menge

meins like bseg-meins

bklas like mbew-bklas

vbel2 like bseg-vbel2

posn2 like bseg-posn2

PAOBJNR like bseg-PAOBJNR

PASUBNR LIKE BSEG-PASUBNR

FKART LIKE CE4JJEA_ACCT-FKART

VKORG LIKE CE4JJEA_ACCT-VKORG

VTWEG LIKE CE4JJEA_ACCT-VTWEG

SPART LIKE CE4JJEA_ACCT-SPART

WERKS1 LIKE CE4JJEA_ACCT-WERKS

prctr like bseg-prctr

wrbtr TYPE bseg-wrbtr

fkber TYPE bseg-fkber

xblnr TYPE bkpf-xblnr

waers TYPE bkpf-waers

wrbtr_v(17) TYPE C

Please advise how to proceed futher

Thanks in advance

P.Senthil Kumar

Hi Guru's,

We have Custom program to post the document in FB01 using BDC.

For enahncement,we need to add two check box for Test run and providing output.

1) For Test Run, Posting should not happen,it is work like simulation.

2) For Providing output,we need to show the posted document in ALV,if we selected Test Run then it should show the simulation document in ALV.

Is it possible to simulate the document like in FB01 Simulation.?

Is there any function module to simulate the FI doucuments.?

Custom program used the following fields for psoting the document in FB01 using BDC.

belnr like bseg-belnr

buzei TYPE bseg-buzei

bschl TYPE bseg-bschl

kunnr like bseg-kunnr

matnr like bseg-matnr

bwkey like bseg-bwkey

bwtar like bseg-bwtar

werks like bseg-werks

bukrs like bkpf-bukrs

vbund like bseg-vbund

hkont like bseg-hkont

shkzg like bseg-shkzg

kostl like bseg-kostl

menge like bseg-menge

meins like bseg-meins

bklas like mbew-bklas

vbel2 like bseg-vbel2

posn2 like bseg-posn2

PAOBJNR like bseg-PAOBJNR

PASUBNR LIKE BSEG-PASUBNR

FKART LIKE CE4JJEA_ACCT-FKART

VKORG LIKE CE4JJEA_ACCT-VKORG

VTWEG LIKE CE4JJEA_ACCT-VTWEG

SPART LIKE CE4JJEA_ACCT-SPART

WERKS1 LIKE CE4JJEA_ACCT-WERKS

prctr like bseg-prctr

wrbtr TYPE bseg-wrbtr

fkber TYPE bseg-fkber

xblnr TYPE bkpf-xblnr

waers TYPE bkpf-waers

wrbtr_v(17) TYPE C

Please advise how to proceed futher

Thanks in advance

P.Senthil Kumar

4 REPLIES 4
Read only

Former Member
0 Likes
901

Hi

Use the standard program RFBIBL00.Using this program u can test run the file.

Or

use BAPI_ACC_DOCUMENT_POST

Regards,

Raghu.

Read only

0 Likes
901

Hi Raghu,

Can you tell me how to use this RFBIBL00.? In the Existing program they already using this program.Please find the below code used in the existing program.

IF NOT d_openfile IS INITIAL.

SUBMIT rfbibl00 WITH callmode = 'B'

WITH ds_name = d_filout

WITH pa_xprot = d_c_mark

WITH xlog = d_c_mark

AND RETURN.

SUBMIT rsbdcsub

WITH mappe = d_namebi

WITH fehler = space

AND RETURN.

ELSE.

MESSAGE e004(zzzx_general).

ENDIF.

Please tell how to use this program for my requirement.?

Thanks in advance

P.Senthil Kumar

Read only

0 Likes
901

Hi Raghu,

Any info on this issue..

Regards

P.Senthil Kumar

Read only

andreas_mann3
Active Contributor
0 Likes
901

analyse fm's of function group FACI (e.g. FI_DOCUMENT_PROJECT or FI_DOCUMENT_CHECK...)

A.