Help reqd for finding TAXES & CONDITIONS FOR GIVEN PO IN SAP-SCRIPT

HI ALL,
         Currently iam working on SAP-SCRIPT developing PO in that i displayed fields like EMATN TYPE EKPO-EMATN,( material no. )
             TXZ01 TYPE EKPO-TXZ01, ( long text )
             MEINS TYPE EKPO-MEINS, ( units )
               MENGE TYPE EKPO-MENGE (quantity)
now i want to display taxes & conditions for given ematn no.( material no . ) so from which tables i should get the data  how to display. plz help me.
thanks in advance.
Regards,
mahesh dudam

Hi !!
  for this please study teh following extract :
All pricing values are maintained in the KONV table for the respective pricing condition . Extract these values from KONV table by passing EKKO-KNUMV values for the Purchase order number from the EKKO purchase order header table .
************************************************************************88
FORM GET_PRICING_DATA  USING    P_KNUMV.
  SELECT * INTO TABLE I_KONV
            FROM KONV
            WHERE KNUMV = WA_EKKO-KNUMV.
  IF SY-SUBRC = 0.
    SORT I_KONV.
  ENDIF.
ENDFORM.                    " GET_PRICING_DATA
*&      Form  get_tax_details
extract Tax item details.
     -->P_EBELp  for purchase order item.
FORM GET_TAX_DETAILS  USING    P_EBELP.
  DATA : L_OCTROI LIKE KONV-KWERT,
        L_BASE LIKE KONV-KWERT,
        L_OTHERS LIKE KONV-KWERT,
        L_DISCOUNT LIKE KONV-KWERT,
        L_PFORWARD LIKE KONV-KWERT,
        L_INSU LIKE KONV-KWERT,
        L_NUM LIKE I_KONV-KUMZA VALUE 1,
        L_DENO LIKE I_KONV-KUMNE VALUE 1,
        L_KPEIN LIKE KONV-KPEIN VALUE 1,
        L_FRT LIKE KONV-KWERT,
        L_CHAR(15).
*-- getting numerator and denominator for base value.
  READ TABLE I_KONV  WITH KEY KSCHL = 'PBXX'.
  IF SY-SUBRC = 0.
    L_NUM = I_KONV-KUMZA.
    L_DENO = I_KONV-KUMNE.
    L_KPEIN = I_KONV-KPEIN.
  ELSE.
    READ TABLE I_KONV  WITH KEY KSCHL = 'PB00'.
    IF SY-SUBRC = 0.
      L_NUM = I_KONV-KUMZA.
      L_DENO = I_KONV-KUMNE.
      L_KPEIN = I_KONV-KPEIN.
    ELSE.
      READ TABLE I_KONV  WITH KEY KSCHL = 'P001'.
      IF SY-SUBRC = 0.
        L_NUM = I_KONV-KUMZA.
        L_DENO = I_KONV-KUMNE.
        L_KPEIN = I_KONV-KPEIN.
      ELSE.
        READ TABLE I_KONV  WITH KEY KSCHL = 'P000'.
        IF SY-SUBRC = 0.
          L_NUM = I_KONV-KUMZA.
          L_DENO = I_KONV-KUMNE.
          L_KPEIN = I_KONV-KPEIN.
        ENDIF.
      ENDIF.
    ENDIF.
  ENDIF.
  CLEAR : V_OCTROI,V_OTHERS, V_DISCOUNT,V_PFORWARD,V_INSU,V_FTR.
  LOOP AT I_KONV WHERE KPOSN = P_EBELP.
*-- Considering the numerator denominator and UOPricing
    IF   I_KONV-KPEIN = 0  .
      I_KONV-KUMZA = 1.     " Numerator
      I_KONV-KUMNE  = 1.    " Denominator
      I_KONV-KPEIN  = 1.    " Unit of pricing
    ENDIF.
   IF NOT I_KONV-KWERT  IS INITIAL .
     IF  I_KONV-KRECH = 'C'  AND  I_KONV-KSCHL <> 'PB00'
       AND I_KONV-KSCHL <> 'PBXX'.
       I_KONV-KWERT  = ( I_KONV-KWERT * I_KONV-KUMZA  )
                       * L_KPEIN / ( I_KONV-KUMNE * I_KONV-KPEIN ).
     ELSEif I_KONV-KRECH = 'C'  AND  I_KONV-KSCHL = 'PB00'
       AND I_KONV-KSCHL = 'PBXX'.
       I_KONV-KWERT  = ( I_KONV-KWERT * L_NUM * L_KPEIN ).
                      / ( L_DENO ).
    elseif I_KONV-KRECH = 'A'  AND  I_KONV-KSCHL = 'PB00'
       AND I_KONV-KSCHL = 'PBXX'.
       I_KONV-KWERT  = ( I_KONV-KWERT * L_NUM * L_KPEIN )
                        / ( l_deno ).
     ENDIF.
   ENDIF.
    CASE I_KONV-KSCHL.
*-- For base price
      WHEN 'PB00'.
        L_BASE = L_BASE + I_KONV-KWERT.
      WHEN 'PBXX'.
        L_BASE = L_BASE + I_KONV-KWERT.
      WHEN 'P000'.
        L_BASE = L_BASE + I_KONV-KWERT.
      WHEN 'P001'.
        L_BASE = L_BASE + I_KONV-KWERT.
*-- For octroi
      WHEN 'JOCM'.
        L_OCTROI = L_OCTROI + I_KONV-KWERT  .
*-- For discount calculation
      WHEN 'ZDT%'.
        L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT .
      WHEN 'ZDN%'.
        L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT.
      WHEN 'ZDTV'.
        L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT .
      WHEN 'ZDNV'.
        L_DISCOUNT = L_DISCOUNT + I_KONV-KWERT.
*--- For packing forwarding .
      WHEN 'ZPNV'.
        L_PFORWARD = L_PFORWARD + I_KONV-KWERT.
      WHEN 'ZPN%'.
        L_PFORWARD = L_PFORWARD + I_KONV-KWERT.
*--- For frieght .
      WHEN 'ZFTV'.
        L_FRT  =  L_FRT + I_KONV-KWERT.
      WHEN 'ZFT%'.
        L_FRT  =  L_FRT + I_KONV-KWERT.
      WHEN 'ZFNQ'.
        L_FRT  =  L_FRT + I_KONV-KWERT.
**-----for others
     WHEN 'ZOTV'.
       L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
     WHEN 'ZOT%'.
       L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
     WHEN 'ZOTP'.
       L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
     WHEN 'ZONV'.
       L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
     WHEN 'ZON%'.
       L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
     WHEN 'ZONP'.
       L_OTHERS  =  L_OTHERS + I_KONV-KWERT.
*--- for insurance
      WHEN 'ZINV'.
        L_INSU  =  L_INSU + I_KONV-KWERT.
      WHEN 'ZIN%'.
        L_INSU  =  L_INSU + I_KONV-KWERT.
      WHEN OTHERS.
        CONTINUE.
    ENDCASE.
    CLEAR I_KONV.
  ENDLOOP.

Similar Messages

  • Driver program for the Dunning letter SAP Script

    Hello All,
    Can someone please tell me how to find the "Driver program for the Dunning letter SAP Script". I checked the Transaction OB96 but I dont find any Dunning scripts here i.e., the standard Dunning letter SAP Script F150_DUNN_01.
    Is there any Transaction like NACE of logistics for FI module to find the Driver programs. My requirement is to find the Driver program for the Dunning letter SAP Script and have a new Driver program instead of the standard SAP given driver program. Example is in transaction NACE we can change the driver program for Invoice like from RVADIN01 to ZRVADIN01.
    Thanks and Regards,
    SNK.

    Yes you can, using FIBF, change the FM associated with event 1720 like when SapScript is replaced with SmartForms. Look at [Define Dunning Forms (with SAP Smart Forms)|http://help.sap.com/saphelp_46c/helpdata/es/7d/c7a0a535e1d311ba4d0800060d888b/content.htm] for reference.
    But notice
    - PRINT_DUNNING_NOTICE call many FM of the same FG which share the same global data area.
    - During following upgrades of your system you will have to manage a copy of standard.
    Regards,
    Raymond

  • Struggling with Comma for an amount in sap script

    Hi Experts
    I am strugling with comma for an amount in sap script .
    For ex: 1234.56  and i need 1,234.56
    I tried  system->userprofile->owndata->Default(Tab)->Decima Notation 1,234,567..89(Selected)
    and i did use /:Edit Mask Field name  but i am not getting comma.
    Thanks & Regards
    Reddy

    Hello,
    In the driver program, assign the amount to a variable of type P and use that variable to display in the script. You will get the commas.
    Vikranth

  • Help reqd for ABAP Materials(pdf/doc format)

    Hi all,
    I want to have the Basic ABAP material books,which is available in sites for free download....
    Pls post ur replies with links.
    thanks & regards
    sankar.

    hello sudarshan
    http://cma.zdnet.com/book/abap/index.htm
    http://www.sapdevelopment.co.uk/
    http://www.sap-img.com/
    http://juliet.stfx.ca/people/fac/infosys/abap.htm
    http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://www.sapgenie.com/abap/example_code.htm
    http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
    http://www.sap-img.com/abap-function.htm
    http://www.sapgenie.com/abap/code/abap19.htm
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.planetsap.com/Tips_and_Tricks.htm
    http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm
    http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
    http://www.henrikfrank.dk/abapexamples/index.html
    http://sap.ittoolbox.com/documents/document.asp?i=752
    http://members.aol.com/_ht_a/skarkada/sap/
    http://sappoint.com/abap/
    http://members.tripod.com/abap4/SAP_Functions.html
    http://members.ozemail.com.au/~anmari/sap/index.html
    http://www.planetsap.com/Userexit_List.htm
    http://www.planetsap.com/Tips_and_Tricks.htm
    http://www.kabai.com/abaps/q.htm
    http://www.planetsap.com/Userexit_List.htm
    http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm
    http://www.sapgenie.com/abap/bapi/example.htm
    http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm
    http://www.sap-basis-abap.com/index.htm
    http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm
    http://www.geocities.com/ResearchTriangle/1635/system.html
    http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm
    http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm
    http://www.sapfans.com/sapfans/repos/saprep.htm
    http://www.planetsap.com/howdo_a.htm
    http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm
    http://www.sapgenie.com/abap/smartforms_detail.htm
    http://www.sap-img.com/abap.htm
    http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm
    http://www.geocities.com/victorav15/sapr3/abap.html
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://abap4.tripod.com/Other_Useful_Tips.html
    http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    http://www.sap-basis-abap.com/sapmm.htm
    http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448
    http://sapfans.com/
    http://cma.zdnet.com/book/abap/ch03/ch03.htm
    http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapuk.html
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://www.sapgenie.com/abap/index.htm
    http://www.sap-img.com/abap.htm
    http://www.sapdevelopment.co.uk/tips/tipshome.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://sap.ittoolbox.com/nav/t.asp?t=322&p=322&h1=322
    http://sap.ittoolbox.com/nav/t.asp?t=448&p=448&h1=448
    http://www.thespot4sap.com/
    http://www.kabai.com/abaps/q.htm
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapgenie.com/abap/tips_and_tricks.htm
    http://www.sapassist.com/code/d.asp?whichpage=1&pagesize=10&i=10&a=c&o=&t=&q=&qt=
    For FAQ
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.sapgenie.com/faq/abap.htm
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    Weblog for receive email and processing it through ABAP
    /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    For Logical database
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
    very useful
    http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
    Useful link to websites
    http://www.hernangn.com.ar/sap.htm
    Useful for background
    http://www.sappoint.com/basis/bckprsng.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm
    http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.wbix_adapters.doc/doc/mysap4/sap4x41.htm
    Table control in BDC
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    For posting weblog,
    /people/sap.user72/blog/2005/06/28/sdn-weblogs-making-it-easier
    Dynamic Internal table -weblog in sdn
    /people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Workflow
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    ALV
    http://www.geocities.com/mpioud/Abap_programs.html
    Mail
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
    BOM Explosion
    /people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-1-abap
    BOM
    http://help.sap.com/saphelp_erp2005/helpdata/en/ea/e9b7234c7211d189520000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/d1/2e4114a61711d2b423006094b9d648/frameset.htm
    http://www.sap-img.com/sap-sd/sales-bom-implementation.htm
    http://www.sap-basis-abap.com/sappp007.htm
    OLE
    http://www.sapgenie.com/abap/ole.htm
    http://help.sap.com/saphelp_46c/helpdata/en/59/ae3f2e488f11d189490000e829fbbd/frameset.htm
    ALVGRID with refresh
    http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html
    For language setting and decimal separator
    /people/horst.keller/blog/2004/11/16/abap-geek-7-150-babylonian-confusion
    Oracle queries
    http://sqlzoo.net/
    To format SQL
    http://www.sqlinform.com/
    SCOT settings
    http://www.sap-img.com/basis/basis-faq.htm
    Status Icon [ALV,Table Control,Tab Strip]
    http://www.sapdesignguild.org/resources/MiniSG-old/from_develop/norm_status_icons.htm#positioning_4
    ALV Group Heading
    http://www.sap-img.com/fu037.htm
    For multiMedia
    /people/thomas.jung3/blog/2005/05/11/using-classic-activex-controls-in-the-abap-control-framework
    Uploading LOGO in SAP
    http://www.sap-img.com/ts001.htm
    LSMW
    http://www.sap-img.com/sap-data-migration.htm
    http://www.sapgenie.com/saptech/lsmw.htm
    http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
    http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Word-17643ed1d6d658821_glossary
    Here are the two links which contains lots of PDFS:
    http://www.easymarketplace.de/online-pdfs-q-s.php
    http://www.consolut.de/saphelp/sap_online_help.html
    ABAP is Advanced Business Application Programming language used in SAP.
    For more details and learning goto sdn ABAP home page -
    https://www.sdn.sap.com/irj/sdn/developerareas/abap
    http://help.sap.com/saphelp_webas630/helpdata/en/6f/c7b041548011d192fd0000e829fbc6/frameset.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/ab/5c46f64c5911d192f30000e829fbc6/frameset.htm
    This will give clear idea about ABAP.

  • Find Tax conditions and amounts while creating a PO from reference.

    Hi friends,
    I am creating a PO from another reference PO. When I create the PO the Tax conditions and
    amounts come from Sabrix 3rd party system. This data gets saved into SAP internal memory and
    is visible when we follow PO item-> Invoice Tab->Taxes-->then we can see Tax
    conditions and there amounts as well. when we press SAVE button PO gets created and KNUMV
    (Condition Number) gets formed and then we can access this Condition types and Amounts data
    from KONV table by specifying the Condition number which is the Primary key of KONV table.
    But we need to access this data of Condition types and Amounts even before we press SAVe
    button on ME21N screen.
    Please help me on this.

    Hi,
    As mentioned that this error was one of the wierdest SAP issues I have faced, it was due to the silliest copy paste errors on my behalf. I completely overlooked the POITEMX naming.
    For 4 values of RFQ_NO, RFQ_ITEM, PREQ_NO, PREQ_ITEM, I didnt have the 'X' for POITEMX and kept on looking for errors for days.
    BAPI_PO_CREATE1 works with min. possible inputs successfully.
    Thanks to all!

  • Please help for using perform in SAP script

    As subject.
    My sap script code as below:
    /: PERFORM GET_CHAMT_DATE IN PROGRAM ZRAP004
    /:USING    &SPELL-WORD&
    /:CHANGING &SPELL-WORD&
    /:ENDPERFORM
    My program ZRAP004 code as below:
    FORM get_chamt_date USING u_iword TYPE spell-word
                       CHANGING u_oword TYPE spell-word.
    CONCATENATE u_iword '&#20803;&#25972;'(t01) INTO u_oword.
    endform.
    This form is for check printing.
    It's by standard function 'F110' to excute check printing.
    But when i finished this transaction. System return error message as below:
    <b>This routine contains 2 formal parameters, but the current call
    contains 4 actual parameters.</b>
    Please help. Thanks a lot!!

    Hiii
    PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
           INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
           INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
          w_vbeln LIKE vbak-vbeln,
          w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
               input  = w_ebeln
          IMPORTING
               output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.

  • Urgent - Not able to Print back page for Last Page in SAP Script.

    Hello All,
    I need to Print back page in SAP Script, I am able to do it by setting print mode as D, but now the problem is, it does not print back page for last page.
    For eg. if there are 3 pages it prints back page for first two. If there is only one page then it does not print back page.
    Please Help.
    Thanks.

    hi,
    Yes, we can print logo as water mark in scripts
    Just do as like this....
    Upload your logo via SE78.
    - Select 'Import' button from application toolbar of SE78, and perform upload.
    and write this code in scripts
    BITMAP 'COMPANY_LOGO' OBJECT GRAPHICS ID BMAP TYPE BCOL 
    regards
    Sankar

  • Search for a string in SAP Script

    Hello Experts,
    Is there a way to search for a string in all Z SAP scripts, like ABAP source scan?
    Regards,
    Hari.

    Try using function module "READ_FORM" (you will have to write a simple z-program to find all SAPscripts in your system then use this function module to search the SAPScript Forms for a particular string).
    All you have to do is supply the "FORM" name and it will return all of the Pages, Paragraphs, and Texts etc....
    More specifically, try looping at the "FORM_LINES" internal table result and you will see the SAPScript text there....
    Have fun    !
    Edited by: Christopher Twirbutt on Sep 16, 2009 12:43 AM

  • Find total no of pages in a sap script

    Hi,
      How do i find the no of pages that is generated in SAP script, with out generating a spool.
    thanks.

    Dear friend
    new system symbols (note upper case) were therefore introduced:
    &SAPSCRIPT-FORMPAGES&
    Total page number based on the current output layout set:
    &SAPSCRIPT-JOBPAGES&
    Total page number based on all output layout sets created with the function modules OPEN_FORM, START_FORM .. ENDFORM, START_FORM .. END_FORM, ..., CLOSE_FORM
    Examples:
    Page &PAGE& of &SAPSCRIPT-FORMPAGES(C)&
    Specifies the current page number and total page number. The additional specification (C) outputs the symbol in a compressed form, that is the leading blanks are omitted in the 4-character output (default).
    Number of all output pages: &SAPSCRIPT-JOBPAGES(C)&
    Outputs the total number of output pages. Caution: When using this symbol, all output pages must be held in the main storage so that the total page number can be inserted at the end of the output. Larger outputs can affect performance.

  • Help reqd for Selection Screen Input paramter

    Hi Friends,
    I've developed a noraml ALV grid report which have Date selection option as input selection parameter. In that , I want to declare last month date as defualt value to date-low range. Whenever the Tcode is entered, it should show the date ranges with my default values as date-low is last month date and date-high is current system date (this one I've given as sy-datlo).
    Please help me how to declare last month date to my low range field.
    thanks & regards
    sankar.

    Hi Suhas,
    i think so there is no need to specify the sign and options.
    SELECT-OPTIONS:so_dat for sy-datum.
    INITIALIZATION.
    so_dat-low = sy-datum.
    so_dat-high = sy-datum.
    append so_dat.
    START-OF-SELECTION.
    BREAK-POINT.
    it assigns BT by default.
    Sankar:Please provide your code

  • Coding help reqd for BADI

    HI Friends,
    Im working on MB_MIGO_BADI object for MType: 261.Here, im facing a problem to call a info msg with coding effect.i.e, I've to give a conditional message says that if the user tries to change the quantity (changing the existing/available in the field text of MIGO), then it'll give a window pop-up message or info msg like "Quantity should not be changed". Pls reply ur post how to fix this.
    The fields are
    1) cs_goitem-bwart " MType
    2) cs_goitem-erfmg "Quantity
    Note: A) It'll be applied only for MType:261.
              B) Pls advise, Here, shall I declare the export and import memory id concept?
    FYI
    ******Below is the coding part declared inside the method function.
    method IF_EX_MB_MIGO_BADI~LINE_MODIFY.
    if cs_goitem-bwart eq '261'.
    *cs_goitem-erfmg is not initial and
    *call function 'CUSTOMIZED_MESSAGE'
    *exporting
    Message i006(zmsg).
    endif.
    endmethod.
    Above, it helps only showing the info msg while entering the mtype: 261.But i need to display it only if the cursor comes into Qty (ERFMG) field. Pls advise me how to fix with ur coding example.
    mail me:[email protected]

    Posted newly since one of the issue got solved.
    thanks

  • Help reqd for printing the word text into two lines(AMOUNT in Rupees)

    Hi all,
    Im working for cheque printing and in the Amount in words column....im getting the text in a single line...as i've made it as in my script.
    (im moving the rate in to amount thru FM "HR_IN_CHG_INR_WRDS"....
    and it displaying into a single line....)
    But in every bank cheque...we have only a limit space for the first line and balance words should come in to the next line....How to achieve this in my form print.(when im giving the cheque(laser print) inside the printer for print)...
    *******FYI..
    now im getting it as
    RUPEES Ninety Seven Thousand Thirty seven and four paise only.(its going out in my cheque as it's coming in a single line,going beyond the words column)
    the above one...i want to print it as two lines as like in normal cheque...
    what condition i've to give and how to split the text or make it to continue in the second line....
    Pls do the needful with any examples or any coding.....
    help needed
    thanks & regards
    sankar

    hi Nehal,
    the below one is my coding part........FYI
    DATA AMT LIKE REGUD-WAERS.
    data: words(120) type c,AMOUNT(120).
    data: ant like PC207-betrg,t like reguh-vblnr,t1 type int4.
    FORM WORDS TABLES intab
    STRUCTURE itcsy outtab
    STRUCTURE itcsy.
    READ TABLE intab INDEX 1.
       t   = intab-value.
    select single RWBTR from reguh into ant where vblnr eq t.
    ant = ant * ( -1 ).
    CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
    EXPORTING
    AMT_IN_NUM               = ant
    IMPORTING
    AMT_IN_WORDS             = words.
    amount = words.
    READ TABLE outtab INDEX 1.
      MOVE WORDS TO outtab-value.
      MODIFY outtab INDEX 1.
    ENDFORM.                    "diff
    with the above code,im getting the amount field in a single line and it goes out beyond the line specified.
    How to split it as a length basis as u said....pls explain in detail...
    thanks & regards
    sankar

  • Help reqd for a newbie on Oracle App Server 10g

    I installed Oracle 10g Appserver. I have used Websphere, WebLogic and other App servers. But, Iam completely new to Oracle 10g App Server. Can you guys help me how to go about it to deploy an application on Oracle 10g App Server and if any pointers are there, they are very very helpful.
    First of my problems, is that, it is asking me for "Enter your single sign-on username and password", when I give oc4jadmin/oc4jadmin, its giving "Incorrect username or password". Can someone give me a pointer to docs, if any to resolve these issues.
    TIA.
    Thanks a lot.
    Prashanth Babu.

    Hi Hamdy,
    Thanks for the quick response. I got the document on the deployment.
    I have installed Oracle Application Server SOA suite 10.1.3.1.0 (for WindowsXP) on my machine. I did a "Basic Install" on this.
    Iam not able to understand what to do with the problem of SSO.
    Any inputs for the problem would be of great help. Thanks a ton for the same.
    Regards,
    Prashanth Babu.

  • Coding help reqd for BADI - looping strategy

    Hi friends,
    Pls help me to post some example codes for looping the table control data items.
    i.e., Details available in table control item in MIGO.
    Ex:
    LINE     Material text        Qty
    1             INGOT              5.0      
    1             INGOT              2.5
    1             INGOT              10.0
    1             FURNACE OIL  180.0
    Pls help me,How to loop this table control items , so that i want to sum the consolidated qty by material wise.
    the fileds are cs_goitem-matnr and cs_goitem-qty.
    FYI, the cs_goitem is a structure of MIGO.(cant do it for looping)
    Post ur comments with sample codes.
    thanks & reagrds
    sankar.
    Edited by: sankar babu on Jan 2, 2008 10:14 AM

    Hello Sankar.
    You can write the code needed in the POST_DOCUMENT method of the BAdI where you have the IT_MSEG table, so that you can loop it and collect the qty you need.
    For example:
    data: ls_mseg type MSEG.
    data: begin of i_coll_qty occurs 0,
               matnr type matnr,
               menge type menge_d,
            end of i_coll_qty.
    loop at it_mseg into ls_mseg where shkzg = 'S'.
        i_coll_qty-matnr = ls_mseg-matnr.
        i_coll_qty-menge = ls_mseg-menge.
        collect i_coll_qty.
    endloop.
    Please reward if helpful.
    Regards,
    George

  • Help reqd for determining header char combination in Manual Planning

    Hi,
    I have created a manual planning layout which has 3 chars in lead col, 5 KF in data col and all remaining chars in the header. Now when I display plan data for this layout at time it displays me records only for one combination of header chars. And so I have hit next combination button to navigate thru remaining records. Is there a way by which I can have all the records with all possible header char combination at once?
    If hit the other combination button and empty all the header fields and then execute it says me no records found for this combination coz then in this case it searches for the records with all the fields blank.
    Thank you,
    sam

    Multiple options:
    1. dependent characteristics (like profit centre / comp code) wont be modelled in the layout. You will have to derive them as chararacteristics relationship. If you wish to keep the dependent characteristics in the layout, then you need to write a exit variable which will populate comp code by reading profit center. Reg cost element, you can have it in loead column. With this setting, if you chose a profit centre in the header and the company code will be populated and for a given profit centre, you cna view the plan data.
    2. Create a report and this is a better approach. You dont need a exit or anything. From report, build a jump to UPSPL for entering plan data.
    Ravi Thothadri

Maybe you are looking for

  • Remote Access VPN users unable to communicate with each other

    Hi, We have configured Remote Access VPN on Cisco IOS router. Users are able to access the inside resources but cant communicate to each other. Any suggestions on the issue? Regards Saif

  • FCP7 with snow leopard - choppy playback in monitor

    Ive been fine running fcp6 with a jvc 1080 hd monitor connect via DVI from my MBP duo intel 2.4 (4 gigs ram) its not the fastest setup but its been fine. ive noticed my playback into my monitor is always choppy now since upgrade to fcp7 and snow lep.

  • I am getting really strange Finder behaviuors since Lion upgrade!

    Hi I have now upgraded all three of my Macs to Lion and there are some weird things going on with Finder. My MacBook Air seems fine and the new Finder window looks okay. My Mac Mini on the other hand while in general is fine the Finder window is show

  • BI Publisher with Jdev11G

    Hi, We are trying to use BI Publisher (XML Publisher) with Jdeveloper11G which is available on our Fusion Linux server.Is it available on Fusion Drop4. Can you please point us to some reference document/resource which helps us to explore about it on

  • I need to put captions on the bottom on each picture

    This is my code I want to add a description for each picture on the slideshow <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>