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: 

CALL TRANSACTION on FBV2 only works in mode 'A'

former_member416164
Participant
0 Kudos

Hello all,

I've wrote a little program to make changes on FI parked invoices. This update is made by a CALL TRANSACTION on transaction FBV2.

This program has worked fine until a couple of days

Since yesterday, this program has stopped working. I debugged it to check if everything was allright and I saw that if the CALL TRANSACTION is launch in mode 'A' (display screens) it works fine.

- I'm running on SA R/3 4.7 (package level 27)

- I've tried playing with CTU_PARAMS values specially on RACOMMIT, NOBINPT, UPDATEMODE etc.. .no results

- Iv'e send this program to a friend that is running ECC5 it works fine

Have you got an idea, a clue, a rope ?

Thank you for your help

Jean-Michel

5 REPLIES 5

former_member416164
Participant
0 Kudos

Nobody has a clue ?

Former Member
0 Kudos

while in call transaction FBV2 statement.

you have mentioned messases in some structure like

Call transaction FBV2 mode 'N' Update 'S' messages in MSGTAB.

where MSGTAB is a structure related to BDCMSGCOLL is standard structure.

you have to put a breakpoint, and check this structure, this is only because of warnings that may occur while you are going in 'N' or 'E' mode.

reward if useful.

0 Kudos

Here is the call transaction statement :

CALL TRANSACTION w_tcode USING wt_bdcdata OPTIONS FROM wt_ctuparams
MESSAGES INTO wt_bdcmsgcoll.

wt_bdcmsgcoll is type BDCMSGCOLL and in wt_ctuparams mode is equal to 'N' and update to 'S'. I've tested a couple of combination between update mode, commit, no batch input options.

0 Kudos

Hi Jean,

Have you tried running in 'E' mode.

Sometimes in mode 'A' it might throw and error but we might neglect it.

So try running in 'E' mode where it throws just the errors. In that way you can find out what is the actual issue.

Thanks,

Arun

former_member416164
Participant
0 Kudos

Hi,

Thank you for your help the problem is now solved.

Amit Singla, you give me the clue

In a popup screen some field are shown or hidden depending on the G/L account. In the BDCDATA table each field of this were processed even if the value was null.

In the message table the message related to the missing field in the popup screen is type 'S' but data are not saved even if this message is a warning.

I rewarded points for your help

Thank you