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: 

BDC - All screens -Working fine: But, if its No Screens--then not working??

Former Member
0 Kudos
180

Hi Experts,

My code is as below,

data: wa_opt type cpu_para.

wa_opt-dismode = 'N'. "N811562

wa_opt-updmode = 'A'. "N811562

wa_opt-NOBINPT = 'X'. "N849676

wa_opt-NOBIEND = 'X'. "N849676

CALL TRANSACTION 'FBB1' USING bdcdata

options from wa_opt

MESSAGES INTO messtab.

I am keeping break point at CALL TRANSACTION and changing to MODE to ALL SCREENS and am manually pressing ENTER button........ten its working, postin gthe doc.

If I keep as is(MODE as NO SCREENS).......execute, then its NOT working, no posting!!

why this difference, How to fix it?

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos
88

data: wa_opt type cpu_para.

change it to below.

data: wa_opt type ctu_params.

5 REPLIES 5

GauthamV
Active Contributor
0 Kudos
89

data: wa_opt type cpu_para.

change it to below.

data: wa_opt type ctu_params.

Former Member
0 Kudos
88

thanq

yes, its my typing mistake........actually i wrote as data: wa_opt type ctu_params. in my prog., so, its not the issue,.....anyhow, i found the issue, will let u know tomorrow, bcoz now, i tired and its late night too. thanq

Former Member
0 Kudos
88

i noticed that, a STATUS-S type messag eis stopping the prog.(normally, prog. shuld stop for ERROR or ABEND message, right? but, here its stoppiing for a STATUS type) so, i corrected that status type message and it worked fine.

i know that, there is this status type message is throwing, but, i ignored it completely bcoz as its status type, but, finally, came to know that, its stopping the prog.

status messsage am getting is: Here in this screen XXXX PRCTR profit center feld is not existing..........so, i corrected this and worked fine,,,,,thanq

Former Member
0 Kudos
88

Yes,

use ctu_params.

Cheers,

Pravin s

Former Member
0 Kudos
88

HI,

If it is working fine in the foreground and not working in background means Transaction is getting enough time for posting in the foreground.So use commit work and wait if Call transaction returns Sucess message,So that the update work process will get sufficient time for upation.

Regards,

Shafi