Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Required a function module to capture cst/vat defined for excise invoice

Former Member
0 Likes
1,067

Sir,

          Cst/Vat is defined as 5%. In smart form for excise invoice the amount of cst/vat will be calculated against total of the invoice of 5%.

          Thus there any function module to capture the 5% of cst/vat from komv structure.

           By this i will get the cst/vat when they print the smart form.

          

Regards.

  Satish.P.

1 ACCEPTED SOLUTION
Read only

arindam_m
Active Contributor
0 Likes
1,039

Hi,

Can you check the following:

"SD_COND_T685_SELECT" - to fetch the access sequence for the given condition type.

"SD_T682I_SINGLE_READ" - to fetch the condition tables.

Cheers,

Arindam

Hi,

Can you check the following:

"SD_COND_T685_SELECT" - to fetch the access sequence for the given condition type.

"SD_T682I_SINGLE_READ" - to fetch the condition tables.

Cheers,

Arindam

6 REPLIES 6
Read only

Former Member
0 Likes
1,039

sir,

         i got the 5% value for vat which was defined for conditional type JIN6,

         from KONP transparent table, on that table no dates are defined.

         can u pls suggest me where do i find the from date and to date for this

         conditional type JIN6. 

Read only

arindam_m
Active Contributor
0 Likes
1,040

Hi,

Can you check the following:

"SD_COND_T685_SELECT" - to fetch the access sequence for the given condition type.

"SD_T682I_SINGLE_READ" - to fetch the condition tables.

Cheers,

Arindam

Read only

Former Member
0 Likes
1,039

Sir,

         My requirement is to fetch the 5% of vat defined in conditions of sales order

         Pls explian the method, how i can fetch the 5% of vat against the sales order no

Read only

arindam_m
Active Contributor
0 Likes
1,039

Hi,

If you see the above FM's They can help you get the 5% that gets reflected in KOMV. Every condition type has a access sequence configured in system. FM "SD_COND_T685_SELECT" will fetch the access sequence and then FM SD_T682I_SINGLE_READ will fetch  the single record where that value 5% is maintained. Check in SE37 the FM where used list you will get an idea from an example that exist in your server.

Cheers,

Arindam

Read only

Former Member
0 Likes
1,039

Sir,

             Thanks for the function modules, by using these function modules, i have used these function modules in a program.

DATA:
   gs_t685  type t685,
   gs_t682i type t682i,
   gt_t682i type standard table of t682i. " Condition tables

CONSTANTS     :  gc_kappl TYPE kappl VALUE 'TX',   " Application
                  gc_kvewe TYPE kvewe VALUE 'A'.    " Usage of the condition table


***************************************************************************************************************
*********************** Get the access sequence for the given condition type **********************************
***************************************************************************************************************

CALL FUNCTION 'SD_COND_T685_SELECT'
              EXPORTING
                    cts_kappl       =     gc_kappl
                    cts_kschl       =     'JIN6'        " Condition Type
                    cts_kvewe       =     gc_kvewe
              IMPORTING
                    cts_t685        = gs_t685.


***************************************************************************************************************
******************************Get the access sequence for the given condition type*****************************
***************************************************************************************************************

CALL FUNCTION 'SD_T682I_SINGLE_READ'
           EXPORTING
                   kvewe_i = gc_kvewe
                   kappl_i = gc_kappl
                   kozgf_i = gs_t685-kozgf  " Access sequence
           TABLES
                   t682i_tab_io = gt_t682i.


LOOP AT gt_t682i INTO gs_t682i.
    WRITE: / gs_t682i-kotabnr.  " Condition tables
ENDLOOP.

i am getting the access sequence of the given conditional type.by concatenating this access sequence type to A. i am getting the table.

example :- A003 is the table i got, on that i got condition record no, by the giving the condition type.


Read only

arindam_m
Active Contributor
0 Likes
1,039

Hi,

So is your requirement completed. Then please close the discussion.

Cheers,

Arindam