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

short dump while parking using PRELIMINARY_POSTING_FB01

Former Member
0 Likes
1,112

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

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,020

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

7 REPLIES 7
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,020

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

Read only

0 Likes
1,020

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?

Read only

former_member182371
Active Contributor
0 Likes
1,020

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.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,021

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

Read only

0 Likes
1,020

Thanks buddy......Issue has solved.....

REgards,Amar

Read only

0 Likes
1,020

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

Read only

0 Likes
1,020

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