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

assigning a value to a string

Hi Friends,

How to assign a value to a string. Coz I need to compare the strings with the user entered string and process the logic.

Example : p_pass TYPE string p_pass = 'APPLE'.

Regards,

SMP

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 08:33 AM

    data p_pass TYPE string p_pass value 'APPLE'.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 08:33 AM

    p_pass TYPE string value 'APPLE'

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 08:34 AM

    data p_pass TYPE string value 'APPLE' ,

    at selection-screen,

    if string co "APPLE".

    eooo1 message.

    endif.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 30, 2007 at 08:51 AM

    Hi,

    Try like this.

    parameters : p_pass TYPE string value 'APPLE'.

    at selection-screen on p_pass.

    If p_pass co 'APPLE'.

    statement

    endif.

    Regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Prashant,

      This is a module pool program. I tried to assign p_pass = 'APPLE'.

      System shows no syntax error but value is not capturing in the variable p_pass.

      Can you tell me what could the reason.

      Regards,

      SMP

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.