Application Development 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: 

PRELIMINARY_POSTING_FB01

Former Member
0 Kudos

I can use the function 'PRELIMINARY_POSTING_FB01' to generate parked account document, it need to be posted by transaction 'FBV0' manually, but how can it be posted automatically thru this function or other one, please advise, thanks!!!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

If you don't find any FM, try with this little BDC:

*

PERFORM comptabiliser-annuler

USING '=STER'.

*

modus = 'N'.

CALL TRANSACTION 'FBV0'

USING bdcdata

MODE modus.

*

IF sy-subrc EQ 0.

.

.

.

&----


*& Form COMPTABILISER-ANNULER

&----


  • text

----


  • -->BDC_OKCODE text

----


FORM comptabiliser-annuler

USING p_okcode TYPE okcode.

*

REFRESH bdcdata.

*

  • Dynpro 0100

*

PERFORM bdc-dynpro

USING 'SAPMF05V' "Program SAPMF05V

'0100'. "Dynpro 0100

PERFORM bdc-field

USING 'BDC_OKCODE' "Okcode - ENTER

'/00' '' ''.

*

*

PERFORM bdc-field

USING 'RF05V-BUKRS'

t9fac_h-bukrs '' ''.

PERFORM bdc-field

USING 'RF05V-BELNR'

t9fac_h-belnr '' ''.

PERFORM bdc-field

USING 'RF05V-GJAHR'

t9fac_h-gjahr '' ''.

*

  • Dynpro 0700

*

PERFORM bdc-dynpro

USING 'SAPLF040' "Program SAPLF040

'0700'. "Dynpro 0700

PERFORM bdc-field

USING 'BDC_OKCODE' "Okcode - Book

p_okcode '' ''.

*

ENDFORM. " COMPTABILISER-ANNULER

Nota: the fields called t9fac_h- are part of one of my application tables

4 REPLIES 4

Former Member
0 Kudos

If you don't find any FM, try with this little BDC:

*

PERFORM comptabiliser-annuler

USING '=STER'.

*

modus = 'N'.

CALL TRANSACTION 'FBV0'

USING bdcdata

MODE modus.

*

IF sy-subrc EQ 0.

.

.

.

&----


*& Form COMPTABILISER-ANNULER

&----


  • text

----


  • -->BDC_OKCODE text

----


FORM comptabiliser-annuler

USING p_okcode TYPE okcode.

*

REFRESH bdcdata.

*

  • Dynpro 0100

*

PERFORM bdc-dynpro

USING 'SAPMF05V' "Program SAPMF05V

'0100'. "Dynpro 0100

PERFORM bdc-field

USING 'BDC_OKCODE' "Okcode - ENTER

'/00' '' ''.

*

*

PERFORM bdc-field

USING 'RF05V-BUKRS'

t9fac_h-bukrs '' ''.

PERFORM bdc-field

USING 'RF05V-BELNR'

t9fac_h-belnr '' ''.

PERFORM bdc-field

USING 'RF05V-GJAHR'

t9fac_h-gjahr '' ''.

*

  • Dynpro 0700

*

PERFORM bdc-dynpro

USING 'SAPLF040' "Program SAPLF040

'0700'. "Dynpro 0700

PERFORM bdc-field

USING 'BDC_OKCODE' "Okcode - Book

p_okcode '' ''.

*

ENDFORM. " COMPTABILISER-ANNULER

Nota: the fields called t9fac_h- are part of one of my application tables

Former Member
0 Kudos

HI,

please see this <b>BAPI BAPI_INCOMINGINVOICE_PARK</b>

or try with <b>MRM_INVOICE_PARK</b>

Regards

Sudheer

anversha_s
Active Contributor
0 Kudos

hi ,

use BAPI_INCOMINGINVOICE_PARK

rgds

anver

pls mark hlpful answers

Former Member
0 Kudos

Hi,

Use FIPP.Post method (BOR object).

Regards,

Alejandro.