3 Replies Latest reply: Nov 21, 2010 8:19 AM by sap core RSS

Calling a Variant table

sap core
Currently Being Moderated

Hi,

 

Please let me know how to call a variant table in a variant function if it is possible ?

 

Regards,

 

Yogesh

  • Re: Calling a Variant table
    Allen Qiu
    Currently Being Moderated

    What did you mean for calling a variant table,could you state it specifically?

    • Re: Calling a Variant table
      sap core
      Currently Being Moderated

      Hi all,

       

      Sorry, I will elaborate my query further.

       

      I have defined a variant function in which I have maintained 2 characteristiics. One of them with 'input char' ('char1' in the below example) checkbox ticked. In that variant function, a function module is called and in the function module program, values of these chars are mapped.

       

      e.g.. char2 is inferred from char1

       

              char2 = A if char1 = X

              char2 = B if char1 = Y                        (its not the exact abap syntax. just an example)

       

      But I want to maintain a variant table to maintain these mappings and then read these mappings inside the function module program instead of writing the mappings directly in the program.

       

      Please let me know if this is possible.

       

      Regards,

       

      Yogesh

  • Re: Calling a Variant table
    Audrey BERETTONI
    Currently Being Moderated

    I understand that you want to call a variant table in a dependency  (procedure, constraint...)

    If you're asking for a valid syntax, you should call the table thus :

     

    TABLE <table name>

     

    (<characteristic of table> = <characteristic of class>,

    <characteristic of table> = <characteristic of class>)

     

    Example :

    table ARC1

    (forme=forme,

    type_verre=type_verre,

    procede=procede,

    tranches=tranches,

    WC_2P24M=$self.WC_2P24M,

    WC_2P9=$self.WC_2P9,

    WC_P9=$self.WC_P9,

    WC_P9GH=$self.WC_P9GH)

     

    More information available at http://help.sap.com/saphelp_470/helpdata/en/92/58d455417011d189ec0000e81ddfac/frameset.htm

     

    I hope this helps.

Actions