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

XK01 -- Batch Input Program Screen Sequence Issue

Former Member
0 Likes
1,527

Guyz,

I created a recording in shdb for xk01 and generated the program from shdb itself and modified the program (both selection screen & processing logic).... suprisingly, when i execute the program, screen sequence is different when compared to the sequence from shdb recording..... i even downloaded the BDCTABLE contents during debugging and compared with recording in SHDB which is fine....

any pointers ?

after filling lifnr, bukrs & account group on initial screen of xk01, usually NAME & ADDRESS details screen comes up in online and SHDB recording, but during program execution in 'ALL SCREEN' & 'SYNCHRONOUS' mode (call transaction), i'm getting first screen (as expected) but its skipping NAME & ADDRESS details screen and thus my program getting stuck?

appreciate your pointers.....

thanks

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
1,112

hi Sreedhar,

some transactions behave differently in foreground and in background. What you can do is that you use CALL TRANSACTION (instead of normal batch input) and set the fiel nobinpt to 'X'. Than you'll get the same screens like online.

hope this helps

ec

6 REPLIES 6
Read only

Former Member
0 Likes
1,112

On the first screen, you have to set a check-box that is normally hidden:


    perform dynpro
      tables bdcdata
      using:
     'X' 'SAPMF02K'     '0105',         "Create Vendor: Initial Screen
      ' ' 'RF02K-BUKRS'             '0001',
      ' ' 'RF02K-KTOKK'             'ZZZZ',
      ' ' 'USE_ZAV'                 'X'.         "<=======Here

This will cause the program to use the screen in Central Address Management.

I also think you will probably use screen 0100 rather than 0105 that I have used above.

Rob

Message was edited by:

Rob Burbank

Read only

0 Likes
1,112

Rob -- I already checked 'USE_ZAV' and screen number just like yours.... yet its happening ....

Read only

0 Likes
1,112

The code I pasted does work. Maybe we don't understand the problem yet.

(There is no SY-NOBINPUT. But there is an option NOBINPT that I believe the other responder was suggesting be set to 'X'.)

Rob

Message was edited by:

Rob Burbank

Read only

0 Likes
1,112

IT WORKED...

Rob -- thanks for pointing me to Options ....

Eric- thanks for ur main pointers...

wonder you can explain what magic did NOBINPUT field made to this bdc ?

Thanks

Read only

JozsefSzikszai
Active Contributor
0 Likes
1,113

hi Sreedhar,

some transactions behave differently in foreground and in background. What you can do is that you use CALL TRANSACTION (instead of normal batch input) and set the fiel nobinpt to 'X'. Than you'll get the same screens like online.

hope this helps

ec

Read only

0 Likes
1,112

Eric,

I'm using CALL TRANSACTION and as suggested, I tried assigning SY-BINPUT to 'X' and SPACE with no luck...btw there is no field called SY-NOBINPUT......

appreciate your comments

thanks