2010 Apr 12 11:28 AM
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
2010 Apr 12 11:35 AM
Hi
Use the standard program RFBIBL00.Using this program u can test run the file.
Or
use BAPI_ACC_DOCUMENT_POST
Regards,
Raghu.
2010 Apr 12 1:11 PM
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
2010 Apr 14 8:56 AM
2010 Apr 12 11:50 AM
analyse fm's of function group FACI (e.g. FI_DOCUMENT_PROJECT or FI_DOCUMENT_CHECK...)
A.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |