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

PRELIMINARY_POSTING_FB01

Former Member
0 Likes
844

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
Read only

Former Member
0 Likes
728

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
Read only

Former Member
0 Likes
729

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

Read only

Former Member
0 Likes
728

HI,

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

or try with <b>MRM_INVOICE_PARK</b>

Regards

Sudheer

Read only

anversha_s
Active Contributor
0 Likes
728

hi ,

use BAPI_INCOMINGINVOICE_PARK

rgds

anver

pls mark hlpful answers

Read only

Former Member
0 Likes
728

Hi,

Use FIPP.Post method (BOR object).

Regards,

Alejandro.