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

Regarding Call Transaction

Former Member
0 Likes
956

hi guys,

i have developed a report which updates me 12 and me 22 using call transactions

both at a time but when i am running this report in fore ground its updating fine but when i am running in back ground its not updating.

i used this syntax -

CALL TRANSACTION 'ME12'

USING i_bdcdata

MODE 'A'

UPDATE 'S' MESSAGES INTO IT_MESSAGES.

REFRESH i_bdcdata

CALL TRANSACTION 'ME22'

USING i_bdcdata

MODE 'N'

UPDATE 'A' MESSAGES INTO IT_MESSAGES.

can any one please help and do you think we can run 2 transactions in back ground at a time.

Thanks

pavan

1 ACCEPTED SOLUTION
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
911

Hi,

Keep both the programs mode in 'N' mode.

that is in the background mode...

then run ur report....

Cheers,

Simha.

8 REPLIES 8
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
912

Hi,

Keep both the programs mode in 'N' mode.

that is in the background mode...

then run ur report....

Cheers,

Simha.

Read only

Former Member
0 Likes
911

i am sorry narasimha, actually i put both the modes in N i.e no screen only and running but its not updating.

Do u think any other reason why its not updating

Thanks

pavan

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
911

Hi,

Just check it in debugging mode..

U can be able to track it very easilyy...

If there is a problem..

Paste ur piece of code....

Cheers,

Simha.

Read only

Former Member
0 Likes
911

Hi Pavan,

Please record the transaction again and check you have missed to call some screen or fill some screen field during the call transaction.

In foreground we ignore this but this has impact in the background and so it does not do complete the process completely.

Please check if you have missed any confirmation popup at the end of the recording and add it in your code.

Regards,

George

Read only

Former Member
0 Likes
911

I think you are using 6.0 in this versions SAP came with Active X Controls which we can't run in back ground.

so that we need to go for BAPIS

1) try for these BAPI_INFORECORD_GETLIST for ME12

2) And BAPI_PO_CHANGE For ME22

bye

Read only

Former Member
0 Likes
911

hi anil kumar,

i never used BAPI's can you please tell me how to use these BAPI's by sending a piece of code especially for ME12 and ME22.

Thanks and waiting for your reply

Pavan kumar

Read only

Former Member
0 Likes
911

Acttually what is your requirement tellme then i will see it

Read only

anilnal
Explorer
0 Likes
911

Hi,

Can you try doing a COMMIT WORK and WAIT after the first call transaction in case table i_messages does not have any error, and then have the second bdc

Regards,

Anil.