Skip to Content
author's profile photo Former Member
Former Member

checkbox in selection screen

hello!

i have a problem in selection screen with a field that

defined as checkbox.

at the initialization if a user have special parameter

i move 'X' to the checkbox field.

if i delete the 'X' from the checkbox,later on in the program i see (with the debugger) that the field still

contain 'X'.

i defined the field in the sel screen:

parameter print as checkbox.

what can i do in order to get the real values in this field?

regards

yifat

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 12:06 PM

    hi!

    i have done the set parameter, but it still

    prints the goodmovment.

    regards

    yifat

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Yifat ,

      See OSS 520813 Question 12 .

      <b>You must make sure that a user name is transferred in the PR_UNAME

      field in the header structure. This user is used for determining the

      print parameters. You must set the value 'X' for the 'NDR' parameter

      ID for this user. Make sure that all customizing-related settings

      have been made for this user. </b>

      Instead of "X" above you should set space in user master ( tcode SU01 ) of the user whose name is passed in PR_UNAME . Or you will have to find a way to update user master before call to BAPI to set the above parameter to SPACE

      Also I think you should open a new thread for this problem and close this threa . Reward points if answers

      were helpful.

      Cheers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 09:35 AM

    how do you delete the 'X' from the checkbox?

    normally you can remove the check status by clear the value in the checkbox paramter.

    If you still have the trouble on this issue, paste your code here.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 09:49 AM

    I am not understand that how you are deleting the 'X' from the checkbox? whether in selection screen you are clearing the checkbox by clicking on it?

    if possible paste that part of code here where you are handling the checkbox.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 10:18 AM

    hi!

    i click on the checkbox (in the selection screen) in order to delete the 'X' value

    in it.

    regards

    yifat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 10:29 AM

    hi!

    the code is:

    initialization.

    SELECT SINGLE PARID

    FROM USR05

    INTO ZPARID

    WHERE BNAME = SY-UNAME AND

    PARID = 'NDR'.

    IF SY-SUBRC = 0.

    MOVE 'X' TO Z_PRINT.

    ENDIF.

    the problem is in field z_print.

    regards

    yifat

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      If the subrc of USR05 select is 0 then you are passing 'X' to z_print and thats the reason that even you are unchecked the check box the value remain same in z_print i.e. 'X' because you are not clearing the value of z_print but as you mention that you declare PRINT as checkbox then you are clearing the value of PRINT and not Z_PRINT.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 06, 2005 at 11:37 AM

    hi!

    thank you very much for all your answers. i solved the problem, but now another problem has occurred.

    The origin idea of this program is to create goodmovment.

    if the user has parameter NDR (like checkbox print in transaction mb1b, that prints the goodmovment)so i move 'X' to field GOODSMVT_HEADER-VER_GR_GI_SLIP.

    if in the selection screen the field was demarked, so no

    'X' is moved to this field.

    the problem is that it doesnt matter if the field in the bapi is marked or not , if i have the parameter NDR the goodmovment is automatically printed, and i want to avoid it.

    thanks

    yifat

    the problem is that

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.