How to print Excise values in Purchase Order Smartform

Hi, Experts,
I am developing the Purchase Order Smartform as per the my client requirment. For this i took the copy of standard Smartform for PO. The name of the standard smartform is 'YBIN_MMPO'. My requirment is to print all the excise values {BED,CESS,ECESS and VAT/CST} of every item. How to get these conditions to print in PO. I serched the table KONV, but the conditions which are under the taxes button are not stored in this table.
For this I found one FM "CALCULATE_TAX_FROM_AMOUNT'. This is also not helpful if client goes to manual excise to create PO.
Is there any other table to get these conditions? or is there any function modules to get these conditions?
Please give me the solution.
Thanks & regards,
Jagadeesh.

Hi,
I used this piece of code to get the excise values in PO.
SELECT SINGLE * FROM EKPO INTO
                W_EKPO
         WHERE EBELN EQ IS_EKKO-EBELN AND
               EBELP EQ <FS>-EBELP.
CALL FUNCTION 'J_1I4_COPY_PO_DATA'
    EXPORTING
      Y_EKPO        = W_EKPO
    EXCCOM        =
CALL FUNCTION 'CALCULATE_TAX_FROM_NET_AMOUNT'
EXPORTING
i_bukrs                 =  <FS>-BUKRS
i_mwskz                 =  <FS>-MWSKZ
  I_TXJCD                 =
i_waers                 = IS_EKKO-WAERS
i_wrbtr                 =  <FS>-NETWR
  I_ZBD1P                 = 0
  I_PRSDT                 =
  I_PROTOKOLL             =
  I_TAXPS                 =
  I_ACCNT_EXT             =
IMPORTING
  E_FWNAV                 =
  E_FWNVV                 =
  E_FWSTE                 =
  E_FWAST                 =
tables
t_mwdat                 = ITAB_TAXDATA
EXCEPTIONS
   BUKRS_NOT_FOUND         = 1
   COUNTRY_NOT_FOUND       = 2
   MWSKZ_NOT_DEFINED       = 3
   MWSKZ_NOT_VALID         = 4
   KTOSL_NOT_FOUND         = 5
   KALSM_NOT_FOUND         = 6
   PARAMETER_ERROR         = 7
   KNUMH_NOT_FOUND         = 8
   KSCHL_NOT_FOUND         = 9
   UNKNOWN_ERROR           = 10
   ACCOUNT_NOT_FOUND       = 11
   TXJCD_NOT_VALID         = 12
   OTHERS                  = 13
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
regards,
Jagadeesh T.

Similar Messages

  • How to print the modified old Purchase Order

    Dear Friends,
    What is the process of printing the modified old Purchase Order.
              With Regards,
                Siva kumar

    Dear,
    Please check the link with screenshots.
    http://www.finance.utoronto.ca/fast/qrg/purch/po/print.htm
    Regards,
    Syed Hussain.

  • How to print Sequential  Numbers like purchase order?

    I ma new to mac and Numbers 09 and have a quick question. How do I print sequential numbers? I have my own MS Excel purchase order number with macro and I want to use Iwork Numbers to print the numbers. For example, Purchase Order: 70085-1 is in my form. When I ask to print 20 copies, it will print 70085-1, 70085-1, 70085-3, etc.
    Thanks in advance

    Here is a modified version of my original script which was posted in :
    http://discussions.apple.com/thread.jspa?messageID=12679002
    This time, with a single run, we may define the number of consecutive invoices to create.
    --[SCRIPT openAndNameInvoiceWithAnumber]
    Enregistrer le script en tant que Script : openAndNameInvoiceWithAnumber.scpt
    déplacer le fichier créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    aller au menu Scripts , choisir Pages puis choisir openAndNameInvoiceWithAnumber
    crée un nouveau document à partir du modèle personnel prédéfini
    et renomme le document avec un nouveau numéro.
    Il insère également le numéro de facture au début du document.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    +++++++
    Save the script as Script, Application or Application Bundle: openAndNameInvoiceWithAnumber.xxx
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    go to the Scripts Menu, choose Pages, then choose openAndNameInvoiceWithAnumber
    will create a new document from the defined user template
    and name it with a new number.
    It also insert the invoice number at the very beginning of the document.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (Vallauris, FRANCE)
    2010/11/30
    2010/12/20 edited to apply if the template is a flatfile one.
    2011/01/11 added ability to build several invoices in a single call
    property theApp : "Pages"
    property theExt : ""
    property myTemplate : "ma_facture.template" (*
    Adapter à vos besoins
    Put your preferred template name *)
    property fichierNum : "le_numéro.txt" (*
    Adapter à vos gouts
    Put your preferred text file name *)
    --=====
    on run
    if theApp is "Pages" then
    set theExt to "pages"
    else
    if my parleAnglais() then
    error "The application “" & theApp & "” is not supported !"
    else
    error "L’application « " & theApp & " » n’est pas gérée"
    end if
    end if
    if my parleAnglais() then
    set nombredefactures to my askAnumber("Enter the number of consecutive invoices needed", 1, "i")
    else
    set nombredefactures to my askAnumber("Saisir le nombre de factures consécutives demandé", 1, "i")
    end if
    repeat nombredefactures times
    my buildaninvoice()
    end repeat
    end run
    --=====
    on buildaninvoice()
    set {p2myTemplate, numero} to my prepare()
    set numero to text -5 thru -1 of ("0000" & numero) (* pour numéro de 5 chiffres *)
    set UNTITLED_loc to my getLocalizedFrameWorksName(theApp, "Untitled")
    tell application "Pages"
    activate
    try
    close document UNTITLED_loc
    end try
    end tell -- to Pages
    tell application "Pages"
    activate
    open p2myTemplate
    set theDoc to numero & "." & theExt
    set name of document 1 to theDoc
    tell document 1
    tell body text
    if my parleAnglais() then
    set paragraph 1 to "invoice #" & numero & return & paragraph 1
    else
    set paragraph 1 to "facture n°" & numero & return & paragraph 1
    end if
    end tell
    end tell
    end tell
    end buildaninvoice
    --=====
    on getLocalizedFrameWorksName(theApp, x)
    local p2bndl
    set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFApplication.framework:Versions:A:Resources:"
    set x_loc to my getLocalizedName(theApp, x, p2bndl)
    return x_loc
    end getLocalizedFrameWorksName
    --=====
    on getLocalizedFunctionName(theApp, x)
    local p2bndl
    set p2bndl to (path to application support as text) & "iWork '09:Frameworks:SFTabular.framework:Versions:A:Resources:"
    set x_loc to my getLocalizedName(theApp, x, p2bndl)
    return x_loc
    end getLocalizedFunctionName
    --=====
    on getLocalizedName(aa, tt, ff)
    tell application aa to return localized string tt from table "Localizable" in bundle file ff
    end getLocalizedName
    --=====
    on prepare()
    local d1, d2, p2d, containerOfTemplates, pathToTheTemplate, p2n, nn
    tell application theApp
    set d1 to localized string "Templates" (* nom local du dossier "Modèles" *)
    set d2 to localized string "My Templates" (* nom local du dossier "Mes Modèles" *)
    end tell -- theApp
    set p2d to (path to application support from user domain) as Unicode text
    set containerOfTemplates to p2d & "iWork:" & theApp & ":" & d1 & ":" & d2 & ":"
    set pathToTheTemplate to containerOfTemplates & myTemplate & ":"
    try
    set pathToTheTemplate to pathToTheTemplate as alias
    on error
    if my parleAnglais() then
    error "The template “" & pathToTheTemplate & "” is unavailable! Please make sure the template file “" & myTemplate & "” is installed in Numbers “Templates:My Templates” folder, then rerun this script."
    else
    error "Le modèle « " & pathToTheTemplate & " » est introuvable! Veuillez installer le fichier modèle « " & myTemplate & " » dans le dossier « Modèles:Mes modèles » de Numbers avant de relancer ce script."
    end if
    end try
    tell application "System Events"
    if class of disk item (pathToTheTemplate as text) is file then
    (* flat file *)
    set p2n to containerOfTemplates & fichierNum
    if not (exists file p2n) then
    make new file at end of folder containerOfTemplates with properties {name:fichierNum}
    write "100" to file p2n (* mettez le numéro de départ de votre choix *)
    end if -- not…
    else
    (* package *)
    set p2n to "" & pathToTheTemplate & fichierNum
    if not (exists file p2n) then
    make new file at end of pathToTheTemplate with properties {name:fichierNum}
    write "100" to file p2n (* mettez le numéro de départ de votre choix *)
    end if -- not…
    end if
    end tell -- System Events
    set nn to read file p2n
    set nn to ((nn as integer) + 1) as text
    write nn to file p2n starting at 1
    return {pathToTheTemplate, nn}
    end prepare
    --=====
    on parleAnglais()
    local z
    try
    tell application theApp to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    Asks for an entry and checks that it is an floating number
    set myInteger to my askAnumber(Prompt, DefaultValue, "i")
    set myFloating to my askAnumber(Prompt, DefaultValue, "f")
    on askAnumber(lPrompt, lDefault, IorF)
    local lPrompt, lDefault, n
    tell application (path to frontmost application as string)
    if IorF is in {"F", "f"} then
    set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
    try
    set n to n as number (* try to convert the value as an number *)
    return n
    on error
    if my parleAnglais() then
    display alert "The value needs to be a floating number." & return & "Please try again."
    else
    display alert "La valeur saisie doit être un nombre décimal." & return & "Veuillez recommencer."
    end if
    end try
    else
    set n to text returned of (display dialog lPrompt default answer lDefault as text)
    try
    set n to n as integer (* try to convert the value as an integer *)
    return n
    on error
    if my parleAnglais() then
    display alert "The value needs to be an integer." & return & "Please try again."
    else
    display alert "La valeur saisie doit être un nombre entier." & return & "Veuillez recommencer."
    end if
    end try -- 1st attempt
    end if -- IorF…
    end tell -- application
    Here if the first entry was not of the wanted class
    second attempt *)
    tell application (path to frontmost application as string)
    if IorF is in {"F", "f"} then
    set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
    try
    set n to n as number (* try to convert the value as an number *)
    return n
    on error
    end try
    else
    set n to text returned of (display dialog lPrompt default answer lDefault as text)
    try
    set n to n as integer (* try to convert the value as an integer *)
    return n
    on error
    end try -- 1st attempt
    end if -- IorF…
    end tell -- application
    if my parleAnglais() then
    error "The value you entered was not numerical !" & return & "Goodbye !"
    else
    error "La valeur saisie n’est pas numérique !" & return & "Au revoir !"
    end if
    end askAnumber
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) mardi 11 janvier 2011 09:30:37

  • Printing Tax Values in Purchase order

    Hello MM Gurus,
            What is the configuration required to print the Tax values of BED,Cess etc.
    in the Purchase order. I have selected "X" in the print column of Tax pricing
    procedure. But, Tax values are not coming in the print out.
             Kindly respond quickly as this requirement is very urgent.
    Regards
    Yoga

    Hi Yoga,
    These values will not come in PO print out since they are stored as NAVS or JEXS. You will have to break them up using the conditions types defined by you.
    You can refer to these tables
    KONP, T685T,J_1IEXCTAX,J_1IMTCHID,KONV,J_1IMATEXP
    to calculate the same
    prasanna

  • How to copy characteristic values from Purchase Order to MIGO Goods Receipt

    Dear all,
    I have a configurable material X,
    then i create a purchase order for that material and then i input characteristic value in the Purchase Order transaction and save it
    However when i do the Goods Receipt transaction via MIGO and using the Purchase Order number that i have created, after i entry the batch number and want to check the classification, the characteristic value are blank, so it is not copied from the Purchase Order
    I've tried guide from
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/92/9b4a23a46411d6b28300508b5d5c51/content.htm
    but i do not find the configuration for copying rule
    Is there any one who can resolve this problem??
    Regards,
    Marufat

    Hi,
    You define the copying rules for a movement type in Customizing for Batch Management under Batch Valuation ,  Valuation for Goods Movement in Inventory Management , Activate Batch Classification for Goods Movements in IM. Please refer below link. Thanking you.
    http://help.sap.com/saphelp_me52/helpdata/EN/47/39867251500aa7e10000000a114a6b/content.htm

  • How can we print the Stock Transfer Purchase Order

    Hi,
    How can we print the Stock Transfer Purchase Order??
    Because from Transaction ME9L & ME9F, we can print simple PO's like NB, MPR etc..but Stock Transfer PO could not print.
    Plz guide, from where we can do it...

    Messages for PO are set in MN04. For details on how to follow this link:
    Re: Problem with PO output determination MN04
    Once the record is set here you will see the records in ME23n under messages button in header.
    Edited by: Afshad Irani on Apr 30, 2010 10:09 AM

  • How we enter text for materials in purchase order smartform

    hi guru
    how we enter text for materials in purchase order smartform
    my requirement is create smartform for purchase order.
    in this i have to create item-text, by using which tcode we can give item data
    plz give more expalnation for this plzzzzzzzzz

    Hi,
           You can use read_text function module for readind text of material and store this value in internal table later pass this internal table to smartform will solve your problem.
    otherwise there is direct option for text element property that is include text u can use that also
    Regards
    Gagan

  • How to extract TEXT for archived Purchase Orders ?

    Hi Friends,
    Can any one tell me how to extract TEXT for archived Purchase Orders ?
    I have used READ_TEXT but that is not fetching texts for archived PO's. Whenever I am trying to fetch data from STXH against archived PO, no value is coming and resulting SY_SUBRC <> 0.
    Any demo code will be highly appreciated.
    Thanks in advance..
    Sivaji

    Hi,
    You can see that table STXH is linked to archiving object MM_EKKO (you can see it in tcode DB15).
    My suggest is that you must get the data. See the demo object BC_SBOOK in tcode AOBJ. You can see the report to reload data. The object is get the data in an internal table. So for report SBOOKR you can see this function module:
    *   get data records from the data container
    *   SBOOK
        CALL FUNCTION 'ARCHIVE_GET_TABLE'
          EXPORTING
            archive_handle        = lv_handle
            record_structure      = 'SBOOK'
            all_records_of_object = 'X'
          TABLES
            table                 = lt_sbook_tmp
          EXCEPTIONS
            end_of_object         = 0.         "not entries of this type
    *   check lt_sbook_tmp entries against selections. Delete not
    *   requested entries
        LOOP AT lt_sbook_tmp ASSIGNING <ls_sbook>
                             WHERE carrid IN s_carrid
                               AND connid IN s_connid
                               AND fldate IN s_fldate.
          APPEND <ls_sbook> TO lt_sbook.
        ENDLOOP.
        REFRESH lt_sbook_tmp.
    The idea is that you get the same data that you handle in READ_TEXT (because you don't have the data in database) and recovery the text.
    I hope this helps you
    REgards
    Eduardo

  • How can i see the Asset purchase order & GR after settlement

    Hello Gurus,
    Would you please tell me how can i check the Asset Purchase order, which is settled (WBS Element)? How can i see the GR document for the specific asset? & if i treat as a expeneses toward the project where i get the GR/ PO in asset explorer?
    Warm Regards,
    Dhananjay Rahane.

    Dear,
    Dhanajay.
    Purchase order related to asset you can see in Asset Master itself. Go to AS03 - Environment  ( Menu bar ) - Click on Purchase Order. Here you will have all the relevant PO's relating to asset.
    GR you can see in PO at a Purchase Order history. The data relating to asset you can  see in left hand side navigation in AW01N Asset Explorer. Like as Vendor, PO's, etc.
    WBS in PO you can see in Account Assignment Tab if your PO is created with N. ( Network PO ). WBS linked to Network you can see in CJ20N ( Project Builder ). 
    WBS Actual values can see in report CJI3 Actual Cost & Revenues.
    I hope this helps you to solve your issue. If you have any doubts feel free to share.
    Regards,
    Pankaj A Bhalerao.

  • How To Print Field Value in TOP-OF-PAGE During Line Selection.

    How To Print Field Value in TOP-OF-PAGE During Line Selection when double click on field.

    (If my memory serves me well (not used for long time ago)
    Assign values to system fields sy-tvar0 - sy-tvar9, they will replace the placeholders "&0" through "&9" in the list headers and column headers.
    TOP-OF-PAGE DURING LINE-SELECTION.
         WRITE: / 'Interactive Report &3'.
      WRITE record-vbeln TO sy-tvar3.
    Regards,
    Raymond

  • How to print Jtable values in one A4 size paper

    Hi,
    i am having JPanel , this panel have Jtbale, Jtextfield, Jlable, i search the code for Printing Jpanel, its work fine and print whole JPanel including, jtable, textbox, everything.
    my Jtable have Scroll bar to see all the values in the table,my problem is when i was print the JPanel the Jtable print only the display values in Jtable, cannot print all the values from Jtable,(eg. Jtable have 50 rows, screen display 20 rows only, move the scrollbar to see remaining,) .
    i want to print 50 rows how to print the values anyone can help me
    thanks in advance.

    Duplicate post. Mods please do your duty.

  • How to print the value of a field of  type FLTP

    hi experts,
    pls tell me how to print the value of a field of  type FLTP. i.e in decimal format not in exponential format.
    thankyou.
    krishna

    Hi ,
    I dont think in Floating point u can able to go for the decimal point display as it is for the minimum precission display..
    Define the variable as the 'packed' type and then u can able to define the decimal point...
    Cheers,
    SImha.

  • Rounding value for purchase order quantity

    Hi Guru ,
    i need help for logic LOT SIZE MRP.
    In particolar i need of use the parameters of rounding for create the planned order multiple of the value.
    Example for a requirement of 3800 pz whit a value rounding of 500 i  vould want that the system create a planned order of the 4000pz.
    I have  tried insert this value 500 in the field "Rounding value for purchase order quantity" in the view MRP1 but after run MRP the system create a planned order of the same quantity of the requirement.
    Thanks a lot for help
    Daniele
    PP TEAM

    Dear,
    OMI4, for lot size select Lot for lot order qty with rounding.
    Either you can use the Rounding Value or you can use a Rounding profile in MRP2 view to round of your order qty and rouding value in MRP1 view.
    Further you can check
    Check FM MD_ROUNDING_VALUE
    Regards,
    R.Brahmankar

  • How to see the list of purchase order

    hi,
    Please kindly guide me how to see the list of purchase order released and unreleased both.
    Regards,
    Sanchita

    Hi
    Check it out in Tcode ME2N
    Menu bar - Edit -Dynamic selections - Purchasing document header - Release status.
    Check it out.
    Thanks
    Raman

  • How to check/update an open purchase order ?

    Dear Experts,
    Is there any Transaction to check the open purchase order?
    Since our company has recently started working with SAP, my supervisor asked me to make a full report of it.
    Thus, I would kindly like to ask
                                                       how we can check the open purchase order?
                                                       how to check/see purcahse orders that are not shipped yet?
                                                       how to see purchase orders that are currently overdue?
    I will really appreciate if you can give me a detail overview of an purchase order(even more than the questions mentioned above).
    Thankyou in advance.
    Wishes,
    Jeevan

    Hi Jeevan,
    Check ME2L or ME2N with Scope of list as BEST or ALV and Selection paramters - WE101 or WE103
    Thanks & Regards,
    Ramagiri

Maybe you are looking for

  • How do I get rid of lip-sync issues with iTunes 10.2.2.12?

    Hi Everyone. Firstly, a very Happy Easter! I'm having lip-sync issues with iTunes playback on my PC. The video is largely smooth with the occaisional choppiness when the CPU is made to work hard. (Playback on my iPod Touch is fine). The system stats

  • SAP ECC 6.0 HELP  LINK ?

    Hi Friends, How to get SAP ECC 6.0 help ? Any link to download?? regards, madhu kiran

  • Do I have to upgrade iPhoto to use photostream?

    Being a bit lazy (and poor) I don't constantly upgrade my software. I upgraded my iMac OS either last year or late 2011 and it is now operating on OSX10.8.4. It is running iPhoto 8.1.2. I bought an iPad later on that year and it looks as if I have to

  • Iphone can't connect to email

    My Iphone is unable to connect to my email. It was working perfectly until this morning and the email screen says 'Connecting' but it never connects.

  • Issue with transfering files, images etc to external hard drive.

    It wont let me drag folders when it did before to my external hard drive, is this to do with permissions or admin?? How do I change this so it works as I need to back up my system. All I want to do is drag them in, it comes up with a grey circle with