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

At selection screen

Hi Friends,

I want to check the entries for the sales group.

vbak-vkgrp(Parameter).

can you pls write the statement.

Thanx in advance,

Venu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 11:16 AM

    Hi Venu,

    PARAMETERS : p_vkgrp type VKGRP.

    data: ws_VKGRP type VKGRP.

    select single VKGRP

    into ws_VKGRP

    from TVKGR

    where VKGRP eq p_vkgrp.

    if sy-subrc ne 0.

    • message s000 'Invalid Sales Group'.

    exit.

    endif.

    Reward points if this helps.

    Manish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2006 at 09:58 AM

    Hi,

    tables: TVKGR.

    select single * from TVKGR where VKGRP eq vbak-vkgrp.

    if sy-subrc ne 0.

    message i002(sy) with 'Sales group not exists'.

    exit.

    endif.

    Regards,

    Rajesh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2006 at 10:03 AM

    Hi venu,

    For checking the values in the selection screen..u need to check the check table associated with that field..for this it is TVBVK..so u write the select statement for this table....and put a message..

    Cheers

    Badri.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 10:08 AM
    AT SELECTION-SCREEN.
    
    IF not p_vkgrp is initial.
    
      select single vkgrp from <b>TVBVK</b> into vbak-vkgrp where
                vkgrp = p_vkgrp.
      if sy-subrc ne 0.
         *display error message her
      endif.
    
    endif.

    Message was edited by: Chandrasekhar Jagarlamudi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2006 at 11:51 AM

    hi ,

    hope this will help you out.

    tables: TVKGR.

    data : l_vkgrp.

    select single vkgrp from TVKGR into l_vkgrp where VKGRP eq p_vkgrp.

    if sy-subrc ne 0.

    message e002(sy) with 'Sales group not exists'.

    exit.

    endif.

    regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 08:42 AM

    Hi,

    Tables:vbak.

    data:itab like vbak occurs 0.

    parameters:p_vkgrp like vbak-vkgrp.

    select * from vbak into table itab

    where vkgrp = p_vkgrp.

    if sy-subrc <> 0.

    message e000(z) with 'sales group does not exist'.

    endif.

    Regards,

    Sowjanya.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 09:16 AM

    see, as it is a parameter,

    u can check like below.

    <b>at selection screen.

    if <parameter> = '...'. / check not <parameter is initial/ write <parameter></b>

    any of the above statement will check/ give param value.

    if it is select-option,

    u need to

    check not <select-option>[] is initial.

    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.