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: 

New(er) Call Transaction for SU01 not working in background

mike_mcinerney
Participant
0 Kudos

We have a function module that wraps a CALL to TRANSACTION SU01 to create users.

The fm is called by a program that runs in a batch job and creates users from a provided input file.

This code has been running for many years.

Prior to our upgrade to 731, our BDCDATA was based off DYNPRO 'SAPLSUU5' '0050'.
The new stuff is driven through, SAPLSUID_MAINTENANCE.

We RErecorded the BDC calls and updated the FM.  The FM runs fine in foreground.

But when its run in background mode, it dumps.

We’ve tried various different recordings, eached tweak in a different way, but they all seem to dump in one way or another based on CNTL_ERRORs -  From container visibility to the last version dealing with CL_GUI_DOCKING_CONTAINER .

So, how do I get this to run in background ?

So, I’m wondering, if anyone know what we can do or what’s going on?

This was a rude awakening, and we’ll probably change this established technique anyway, but we’d like to just fix the BDC for now.  Any ideas will be extremely helpful.

Thanks…

5 REPLIES 5

Former Member
0 Kudos

hi Mike

i find some infomation from notes(372359,372592), but your program only a BDC recording, no relationship with screen, i`m confusing.

Symptom

The class CL_GUI_DOCKING_CONTAINER allows the transfer of parameter RATIO in the constructor, and this parameter can have a value between 5 and 95 (see Note 372359). This parameter determines how many percent of the screen width (in the case of docking containers left or right) or of the screen height (top and bottom) the docking container should take up. With the method GET_RATIO you can find out at any time, how much space (in percent) the docking container currently takes up.

Here, you encounter the following problems:

    1. GET_RATIO delivers a value greater than 100.

    2. Both the specification in the constructor and GET_RATIO deliver results deviating slightly from the exact value. For example, although value 50 was passed to the constructor, the container does not exactly take up half the screen area; also GET_RATIO for example delivers value 100 although the container does not take up the full screen.

 

Other Terms

CONTROL FRAMEWORK CL_GUI_CFW

 

Reason and Prerequisites

    1. This is a program error. It is corrected with the attached correction; the correction is also included in Support Packages.

    2. The entries for RATIO in the constructor and the result of GET_RATIO are only approximate values because the calculation of screens is based on full lines and columns whereas controls, in particular docking containers, use metrics that are based on pixels. Results that are slightly imprecise are caused by the fact that the window size cannot be divided exactly into lines and columns.


In short, the specifications in percent can only be used to determine or query an approximate value for the space that docking container and screen take up.

 

Solution

 

  1. 1. Correct the error; an advance correction is possible.

regards,

Archer

Sougata
Active Contributor
0 Kudos

Mike McInerney wrote:

Prior to our upgrade to 731, our BDCDATA was based off DYNPRO 'SAPLSUU5' '0050'.
The new stuff is driven through, SAPLSUID_MAINTENANCE.

We RErecorded the BDC calls and updated the FM.  The FM runs fine in foreground.

But when its run in background mode, it dumps.

Just a thought:

May be its time the program was rewritten using BAPI_USER_CREATE1 rather than using screen/batch recording?

Cheers,

Sougata.

former_member188032
Participant
0 Kudos

Mike,

Did you ever solve this issue?  We just upgraded to NW 740 and have a program that was updating the user master record via BDC.  It is now failing, just as you indicated.  Can you share some information on your solution?

0 Kudos

Consider now SU01 as an Enjoy transaciton and switch to BAPI.

Regards,

Raymond

Former Member
0 Kudos

Hi Mike!

Same issue here...

Did you find a solution?

Regards

Peter