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

Batch Input for FB01

former_member211575
Participant
0 Likes
3,810

Hi

im running a batchinput for FB01,

while debbugging if the Batch is in visible mode the document is register, not visible does not registeres the document.

the 2 last actions are:

PERFORM f_bdctab USING:

'X' 'SAPMF05A' '300',

' ' 'BDC_OKCODE' '=BU',

'X' 'SAPLKACB' '002',

' ' 'BDC_OKCODE' '=ENTE'.

in visible mode they are working properly, when i press the okcode = ENTE it goes to the next line of the loop and shows on the footer that the document is register and the fields are already fill in.

Can you help me on this?

TY

Sofia

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
2,555

Self-made batch inputs for FB01 are often a pain (mainly because of conditional field status and that weird "next line" logic), you should rather use BAPIs or standard program RFBIBL00. Maybe it's not too late to switch.

Thomas

10 REPLIES 10
Read only

ThomasZloch
Active Contributor
0 Likes
2,556

Self-made batch inputs for FB01 are often a pain (mainly because of conditional field status and that weird "next line" logic), you should rather use BAPIs or standard program RFBIBL00. Maybe it's not too late to switch.

Thomas

Read only

0 Likes
2,555

Hi

ty for your suggestion.

this BI was working, i only added the COBL-AUFNR , FIPEX, FIPOS and BSEG-WRBTR MWSKZ fields to be uploaded.

can they interfer with the logic?

Sofia

Read only

0 Likes
2,555

Yes, the fields of the coding block COBL appear or don't appear based on field status as defined for the posting key or G/L account, and whether the G/L account is CO relevant or not, so it is quite difficult to "foresee" the correct sequence of coding block fields ahead of time when filling the session with a bespoke program.

Additional problems are caused by tax categories and foreign currency transactions. All this from my limited experience, there is probably more.

Thus my recommendation.

Thomas

Read only

0 Likes
2,555

Hi,

the problem was solved, we uncheck the tax field , and the document was registered properly.

TY for your help

Read only

0 Likes
2,555

I second using RFBIBL00... the BDC for FB01 is a REAL pain as the screens always change based on customer\account types.

if possible use a BAPI or RFBIBL00

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,555

To BAPI_ACC* FM/BAPI and RFBIBL00 report i would had the FM of the POSTING_INTERFACE* family

- POSTING_INTERFACE_START for global parameter (group, etc) tat start...

- [POSTING_INTERFACE_DOCUMENT|http://www.sdn.sap.com/irj/scn/advancedsearch?query=posting_interface_document#sdn_content_category_value_wiki] for documents

- POSTING_INTERFACE_END to close

- Less pain than converting to BAPI

Parameter T_FTPOST of POSTING_INTERFACE_DOCUMENT is more than similar to BDCDATA, but you do not have to care with dynpro, ok_code and the like, so converting an existing report is not painful. (Just manage a counter per document, and a counter per line when filling this internal table)

- Less work than RFBIBL00

You also don't need to build a dataset file like for RFBIBL00.

Regards,

Raymond

Read only

0 Likes
2,555

ty for your help.

however, even if the tax can be the source off the problem, it should have been a problem too in the visible mode.

the beahior is differente from A to N mode. int the A mode - registers the document, N does not register the document.

maybe is my lack of experience , and i ask again, can one field cause a different beahvior despistes the choosen mode?

tnks in advanced for your help.

Sofia

Read only

0 Likes
2,555

When you execute in "A" mode, if there are fields that are not editable (or even not active) on the dynpro, a status message apprears, and the process continue. When this happens in background, batch-input is interrrumpted with Error.

So did you get such messages (green - status message like "Field &1&2 is not an input field", "Field name & not valid in the batch input data" or such messages)

Regards,

Raymond

Read only

0 Likes
2,555

Most of the time: "Field ANY-FIELD not available in screen ABC 123", can be "entered away" in mode A, will lead to error in mode N.

What actual error messages do you see in the session log when document has not been posted?

Thomas

Read only

0 Likes
2,555

Hi

i dont have any error or warning messages, all of the fields im trying to sumbit exists on the screen.

after the batch input processing it was suposed to appear a messsage that the document was register in the X company.

( se16 > t-100 with sprasl = pt arbgb = f5 Msgnr = 12).

in the A mode this message appears in the N mode does not appear, the documents are only created but not registered .

ty

Sofia