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 'LS33' and skip first screen.

Former Member
0 Kudos

This doesn't work:

set parameter id 'LEN' field '04018091'.
call transaction 'LS33' and skip first screen.

I've found this:

/message/3715690#3715690 [original link is broken]

but I'm not sure about the exact meaning (wouldn't know where to put the *)

nor even about if it applies.

Thanks in advance.

1 ACCEPTED SOLUTION

krishnendu_laha
Active Contributor
0 Kudos

Hi Soledad,

when you are setting value instead of hardcode value, use the variable type with same as field of parameter ID. i think it will work.

Regards,

Krish

12 REPLIES 12

Former Member
0 Kudos

Only applies if you're using Webgui, if not your existing code is fine.

Regards,

Nick

krishnendu_laha
Active Contributor
0 Kudos

Hi Soledad,

when you are setting value instead of hardcode value, use the variable type with same as field of parameter ID. i think it will work.

Regards,

Krish

0 Kudos

This:

DATA p_lenum LIKE lein-lenum VALUE '04018091'.
SET PARAMETER ID 'LEN' FIELD p_lenum.
CALL TRANSACTION 'LS33' AND SKIP FIRST SCREEN.

doesn't work, either.

It is as if the transaction weren't able to recognise the ID, but I looked it up with the <i>F1 -> Technical Data</i> help. When I try to do this with other transactions, it does work.

0 Kudos

When you run your program does it stop on the initial screen of transaction LS33 with a blank in the storage unit field? Or does some error get displayed?

I've run your code in my own system and (other than the storage unit not existing) it works fine.

Regards,

Nick

0 Kudos

The box is empty. The error message I get is about filling in required fields. Just the same thing that happens when I just write:

CALL TRANSACTION 'LS33' AND SKIP FIRST SCREEN

and say nothing about the field.

Are you providing 'LEN' as the ID?

Thanks.

0 Kudos

I have the following code in a 4.6c system;

SET PARAMETER ID 'LEN' FIELD '04018091786543876545'.

CALL TRANSACTION 'LS33' AND SKIP FIRST SCREEN.

and it's working fine.

It's not an answer as such, but an alternative is to fill the first screen using a batch input structure and call the transaction with CALL TRANSACTION 'LS33' USING itab, where itab is your batch input structure.

Regards,

Nick

0 Kudos

Please, could you open program SAPML01S with se80 or se38 and search the whole program for GET PARAMETER? There are about 10 occurences, no more. In mine, none of them corresponding 'LEN'. [Searching GET PARAMETER 'LEN' would not be enough, because of the possible ":" after PARAMETER]. If you get a possitive answer, I stop trying.

Thanks.

0 Kudos

Looks like there is no get parameter for 'LEN' in the code.

I tried to keep a break point at the get parameter statement before starting the ls33 transaction and it didn't stop.

As an alternative, you can do a PARTIAL BDC recording and cal the transaction in error mode till you cross the first screen.

perform BDC_DYNPRO '<progname>' 'screen num>'.

perform BDC_DYNFIELD '<Screen name of field>' '<Value>'.

perform BDC_DYNPRO '<progname>' '< next screen num>'.

call transaction 'LS33' using it_bdcdata mode 'E'.

Regards,

Ravi

0 Kudos

Hi...

Browse database table TPARA and see if Parameter ID <b>LEN</b> exists in your system... ...it may not...

SET PARAMETER ID 'LEN' FIELD '04018091'.

CALL TRANSACTION 'LS33' AND SKIP FIRST SCREEN.

...this works just fine here...

Dave...

0 Kudos

Hi,

When I search SAPML01S for GET PARAMETER I get the following matches;

get parameter id 'LGN' field lagp-lgnum.

get parameter id 'LGT' field lagp-lgtyp.

get parameter id 'LGP' field lagp-lgpla.

So nothing for 'LEN'. So nothing there.

I think you have uncovered an SAP bug. I've tried LS33 in a 6.0 system and even if I call the transaction in dialog, enter a storage unit and leave the transaction, the next time I call LS33 the st. loc. is blank. This is not the behavior in the 4.6 system, once I've enter a st. loc. the SPA/GPA is used to retain that value.

One for OSS I think!

Regards,

Nick

Former Member
0 Kudos

Hi,

Check whether your input number is correct and you got the LS33 screen or not?

Thanks.

Former Member
0 Kudos

it works fine for me

probabaly you check the table tpara for parameter id LEN entry