2009 Oct 12 3:39 PM
Dear All,
I am trying to PARK FI document in FB01 through PRELIMINARY_POSTING_FB01 F.M.
I am passing following data to it.
WA_BKPF-BUKRS = 'EHQ'.
WA_BKPF-GJAHR = '2009'.
WA_BKPF-BLART = 'RV'.
WA_BKPF-BUDAT = '20091014'.
WA_BKPF-USNAM = 'NLTN5000'.
WA_BKPF-MONAT = '07'.
WA_BKPF-WAERS = 'EUR'.
APPEND WA_BKPF TO I_BKPF.
WA_BSEG-BUKRS = 'EHQ'. " WA_PARK-BUKRS.
WA_BSEG-GJAHR = '2009'. "WA_PARK-GJAHR.
WA_BSEG-AUGDT = '20091014'. " WA_PARK-AUGDT.
WA_BSEG-BSCHL = '50'. "WA_PARK-BSCHL.
WA_BSEG-KOART = 'S' . "WA_PARK-KOART.
WA_BSEG-SHKZG = 'S' . "WA_PARK-SHKZG.
WA_BSEG-DMBTR = '100'. "WA_PARK-DMBTR.
WA_BSEG-WRBTR = '100'. "WA_PARK-WRBTR.
WA_BSEG-SGTXT = 'TESTING'. "WA_PARK-SGTXT.
WA_BSEG-VORGN = 'RMWL'. "WA_PARK-VORGN.
WA_BSEG-KOKRS = '9000' . "WA_PARK-KOKRS.
WA_BSEG-SAKNR = '1210160'. "WA_PARK-SAKNR.
WA_BSEG-HKONT = '1210160'. "WA_PARK-HKONT.
APPEND WA_BSEG TO I_BSEG.
WA_BSEG-BUKRS = 'EHQ'. " WA_PARK-BUKRS.
WA_BSEG-GJAHR = '2009'. "WA_PARK-GJAHR.
WA_BSEG-AUGDT = '20091014'. " WA_PARK-AUGDT.
WA_BSEG-BSCHL = '50'. "WA_PARK-BSCHL.
WA_BSEG-KOART = 'S' . "WA_PARK-KOART.
WA_BSEG-SHKZG = 'H' . "WA_PARK-SHKZG.
WA_BSEG-DMBTR = '100'. "WA_PARK-DMBTR.
WA_BSEG-WRBTR = '100'. "WA_PARK-WRBTR.
WA_BSEG-SGTXT = 'TESTING1'. "WA_PARK-SGTXT.
WA_BSEG-VORGN = 'RMWL'. "WA_PARK-VORGN.
WA_BSEG-KOKRS = '9000' . "WA_PARK-KOKRS.
WA_BSEG-SAKNR = '1210160'. "WA_PARK-SAKNR.
WA_BSEG-HKONT = '1210160'. "WA_PARK-HKONT.
APPEND WA_BSEG TO I_BSEG.
CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
EXPORTING
I_XCMPL = 'X'
I_TCODE = 'FB01'
IMPORTING
XEPBBP =
TABLES
T_BKPF = I_BKPF
T_BSEG = I_BSEG.
when I try to exrcute it gives following dump.
"An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_MISSING', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
When calling the function module "PRELIMINARY_POSTING_FB01", one of the
parameters
needed according to the interface description was not specified.
This parameter was "T_BSEC"."
I dont know why is it comming.
Regards,
Amar
Edited by: amar kumar on Oct 15, 2009 9:08 AM
2009 Oct 15 8:35 AM
Hello.
Becasue in SE37 when you execute it is passed blankly by default.So just pass the following parameters in the function module these are mandatory
T_BKPF
T_BSEG
T_BSEC
T_BSET
T_BSEZ
In case of any more clarification do let me know.
Regards,
Nabheet Madan
Hello.
Becasue in SE37 when you execute it is passed blankly by default.So just pass the following parameters in the function module these are mandatory
T_BKPF
T_BSEG
T_BSEC
T_BSET
T_BSEZ
In case of any more clarification do let me know.
Regards,
Nabheet Madan
2009 Oct 15 8:26 AM
Helllo
Its quiet simple.Just pass the T_BSEC parameters in the tables.Its a mandatory parameter.
In case of any more issues do let me know.
Regards,
Nabheet Madan
2009 Oct 15 8:33 AM
Hi,
But when I do thru SE37 transaction I do not pass T_BSEC.And I get succesful message.Then why it needs in program?
2009 Oct 15 8:26 AM
Hi,
in se37 for fm PRELIMINARY_POSTING_FB01 if you go to "tables" tab you´ll see that the column "Optional" is not ticked for tables:
T_BKPF
T_BSEG
T_BSEC
T_BSET
T_BSEZ
so it seems that these tables must be filled.
Best regards.
2009 Oct 15 8:35 AM
Hello.
Becasue in SE37 when you execute it is passed blankly by default.So just pass the following parameters in the function module these are mandatory
T_BKPF
T_BSEG
T_BSEC
T_BSET
T_BSEZ
In case of any more clarification do let me know.
Regards,
Nabheet Madan
2009 Oct 15 8:42 AM
2009 Nov 30 2:13 PM
Dear All,
I have to assign profitability segment for parking FI document using function module PRELIMINARY_POSTING_FB01.
Aso I didn't understand why documet number is not stored in BSEG table.
Please reply.
Regards,
Amar
2010 Feb 04 10:25 AM
HI
Parking document not updated in bseg table. for this see in these
u2022 VBKPF - Document Header for Document Parking
u2022 VBSEG - Document Parking Document Segment - General Structure
u2022 VBSEGS - Document Segment for Document Parking - G/L Account Database
u2022 VBSEGK - Document Segment for Vendor Document Parking
u2022 VBSEGD - Document Segment for Customer Document Parking
u2022 VBSEGA - Document Segment for Document Parking - Asset Database
Thanks
Deepak
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |