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

selection screen

hiii,

code:

WA3-CONFR = WA1-BEGDA + 180.

i want my output according to field CONFR

i.e i want this field in selection screen

how can i do this??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Posted on Oct 10, 2008 at 06:21 AM

    select-options : s_confr for confr.

    Edited by: Milind Mungaji on Oct 10, 2008 8:22 AM

    Add a comment
    10|10000 characters needed characters exceeded

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

    Hi,

    If you want it as parameter :

    Parameter : p_cofnr type cofnr.

    If you want it as Select-option:

    Select-options : s_cofnr for cofnr.

    Thanks & Regards,

    Navneeth K.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 10, 2008 at 06:24 AM

    Parameters : WA_BEGDA type ABCD-BEGDA.

    Parameters : WA_CONFR type ABCD-CONFR.

    AT SELECTION-SCREEN.

    WA_CONFR = WA_BEGDA + 180.

    Regards

    Bala Krishna

    Add a comment
    10|10000 characters needed characters exceeded

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

    Hi AKS,

    look into the below code.

    parameters : s_date like sy-datum default sy-datum,
                       s_date1 like sy-datum.
    
    at selection-screen.
    
    s_date1 = s_date + 10.
    
    

    comment on it.

    Regards

    Kumar M

    Edited by: mukesh kumar on Oct 10, 2008 8:38 AM

    Add a comment
    10|10000 characters needed characters exceeded

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

    Hi

    Parameters : WA_BEGDA type kna1-kunnr.

    Parameters : WA_CONFR type kna1-kunnr.

    AT SELECTION-SCREEN.

    WA_CONFR = WA_BEGDA + 180.

    Use the at selection-screen event. if the value of wa_confr is always wa_begda.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2008 at 07:05 AM

    hii mukesh,

    thanx..

    but the prob is

    if i want BEGDA using select-option

    *select-options:beg for table-begda *

    then i would use

    table name-begda(field name) IN beg

    in my code,that means output according to begda.

    but

    con = begda +180

    if i want output according to con

    then wat??

    Edited by: aks on Oct 10, 2008 3:15 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2008 at 07:36 AM

    Hi AKS,

    Just the below code.

    TABLES : MARA.
    
    SELECT-OPTIONS : S_DATE  FOR MARA-LAEDA,
                     S_DATE1 FOR MARA-LAEDA.
    
    
    
    AT SELECTION-SCREEN ON S_DATE.
      S_DATE1-LOW    = S_DATE-LOW + 10.
      S_DATE1-HIGH   = S_DATE-HIGH + 10.
    
      APPEND S_DATE1.
    

    comment on it.

    regards

    Kumar M

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2008 at 08:00 AM

    Mukesh,

    i want only one field in selection-screen.

    let me explain u...

    there r two fields ,

    one is joining date-A

    other is addition of 180 days to joining date-B

    now, wat i want is output according to B

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi aks,

      The 'D' or 'DATS' type variables can be arithmatically processable with intergers.

      i.e. Consider the following code.

      
        DATA : V_TEMP         TYPE SY-DATUM.
        
        PARAMETERS : P_DATUM  TYPE SY-DATUM.
      
        START-OF-SELECTION.
          CLEAR : V_TEMP.
          V_TEMP = P_DATUM + 180.
          SKIP 10.
          WRITE : /10 V_TEMP.
      
      

      If the input is '2009/10/10', then the output will be '2009/04/08' which is exactly 180 days from the input.

      So now you can use this value for your further processing.

      Regards,

      R.Nagarajan.

      -


      We can -


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.