Skip to Content
avatar image
Former Member

smartform: taxcode problem

Hello expert,

currently i am working on a smartform YBIN_MMPO_2, and the driver program is YBAA_FM06P and the application is EF(purchase order).

when i am executing the ME23N tcode and providing the VENDOR NUMBER,PURCHASING ORGANIZATION,PURCHASING GROUP, COMPANY CODE and providing the tax code as 'VM' and clicking on the print preview,it is displaying the purchase order and also displaying the BED,ECESS,SECESS & VAT in percentage(%).

but when i am providing the tax code as 'Z7' and clicking on print preview, then the system showing an error as follows;

"QUANTITY COULD NOT BE CONVERTED FROM TO KG".

The Z7 is the new taxcode which we created and maintained the rate unit as sales unit (QTY) as required by the client where as in the standard taxcode the rate unit are maintained as sales unit (%) .

useful answer will be rewarded.

Rajat.P

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 18, 2011 at 04:08 AM

    Hi Raja,

    "QUANTITY COULD NOT BE CONVERTED FROM TO KG". Check the filed types. Post if you need more help need in this. If possible change the declaration types.

    Regards,

    Madhu.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hello madhu,

      let me try on this. i need further help i will get back to u.

      thanks and regards

      Rajat

  • avatar image
    Former Member
    Apr 19, 2011 at 10:30 AM

    Hello,

    You have to make a conversion process for the same, Usaually this should come in the smartform basically for the driver program, say: as below:

    This is for the sales related orders:

    VRKME TYPE VRKME, " for unit of conversion(for day to Hrs or KG to ML etc) in smartform -> global difinitions-> types

    than, in smartform -> global difinitions-> initializations (you have to write this code)

    SELECT VBAKVBELN VBAPPOSNR VBAKAUART VBAKWAERK VBAK~KNUMV

    VBAKERDAT VBAPMATNR VBAPKWMENG VBAPMEINS VBAP~NETWR

    VBAKKUNNR VBAKBUKRS_VF VBAKVKBUR VBAKAUDAT

    INTO TABLE IT_SO

    FROM VBAK

    INNER JOIN VBAP ON VBAKVBELN = VBAPVBELN

    WHERE VBAK~VBELN = L_VBELN.

    READ TABLE IT_SO INTO WA_SO INDEX 1.

    *Reading Doc Conditions

    SELECT KNUMV KPOSN KSCHL KBETR KAWRT KMEIN

    INTO TABLE IT_KONV

    FROM KONV

    WHERE KNUMV = WA_SO-KNUMV.

    LOOP AT IT_SO INTO WA_SO.

    WA_ITEM-VBELN = WA_SO-VBELN.

    WA_ITEM-POSNR = WA_SO-POSNR.

    WA_ITEM-MATNR = WA_SO-MATNR.

    WA_ITEM-ITMNO = WA_SO-POSNR / 10.

    SELECT SINGLE MAKTX INTO WA_ITEM-MAKTX

    FROM MAKT

    WHERE MATNR = WA_SO-MATNR.

    Just make an amenmants in yr program basically in the global definitions in initialization area. you have to maintain this type of code related to yr MM Modules for ME23N. I am sure you will get benefited by this.

    Regards,

    Akg

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank u Amit,

      For your reply and answer.let me implement this and i will get back to u on this.

      Regards

      Rajat.P