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: 

FB01 Posting with Session Method

Former Member
0 Kudos

Hi Experts,

I am trying to post the data in FB01 transaction code through POSTING_INTERFACE_START, POSTING_INTERFACE_DOCUMENT, AND POSTING_INTERFACE_END and it is working fine with Call Transaction method but I want in Batch input session method.

Can anyone guide me on the same what i have to do for the same?

Edited by: Rajneesh Gupta on Mar 10, 2010 7:19 AM

Edited by: Rajneesh Gupta on Mar 10, 2010 7:20 AM

5 REPLIES 5

former_member194669
Active Contributor
0 Kudos

Check the function module documentation for fm POSTING_INTERFACE_START

If function 'B' (batch input processing) is required, this function

module opens the batch input session and transfers the necessary

parameters.

Pass 'B' import parameter I_FUNCTION

0 Kudos

Hi,

I am passing

CALL FUNCTION 'POSTING_INTERFACE_START'

EXPORTING

I_CLIENT = SY-MANDT

i_function = 'B'

I_GROUP = 'Test1'

I_KEEP = 'X'

I_USER = sy-uname

  • I_XBDCC = ' '

EXCEPTIONS

CLIENT_INCORRECT = 1

FUNCTION_INVALID = 2

GROUP_NAME_MISSING = 3

MODE_INVALID = 4

UPDATE_INVALID = 5

OTHERS = 6.

It is creating the Session but when i am trying to process i am getting "Processing of batch input session completed",

it is not going for FB01.

0 Kudos

Hi,

is FM: POSTING_INTERFACE_START for T-code FB01?

y con't u create BDC with session method for T-code FB01?

regards,

ashok

0 Kudos

Ans 1: Yes

And 2: I don't want to use BDC

0 Kudos

Hi,

check the following coding in the program: RFBIBL01 Batch Input Documents

just identify how it is working

FORM MAPPE_OEFFNEN.

CHECK FUNCTION NE 'D'.

*----


Interne Buchungsschnittstelle initialisieren

CALL FUNCTION 'POSTING_INTERFACE_START'

EXPORTING

I_FUNCTION = FUNCTION

I_CLIENT = BGR00-MANDT

I_GROUP = BGR00-GROUP

I_XBDCC = XBDCC

I_HOLDDATE = BGR00-START

I_KEEP = BGR00-XKEEP

I_MODE = ANZ_MODE

I_UPDATE = UPDATE

I_USER = BGR00-USNAM.

IF FUNCTION = 'B'.

PERFORM LOG_MSG USING C_MSGID 'I' '007'

GROUP_COUNT BGR00-GROUP SPACE SPACE.

ENDIF.

GROUP_OPEN = 'X'.

ENDFORM.

regards,

ashok