I am creating box for two coloums in sap script

hi,
i am creating box for two coloums
when i am creating box for this two coloums this box is displaying from the top.
when i am decreasing this hight it is decreasing from the buttom of the window
i want to decrease from the top of window
can u explan plz
this requirement
plzz

see this:
BOX Command
Syntax
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
Effect: draws a box of the specified size at the specified position.
Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
XPOS, YPOS
Upper left corner of the box, relative to the values of the POSITION command.
Default: Values specified in the POSITION command.
The following calculation is performed internally to determine the absolute output position of a box on the page:
X(abs) = XORIGIN + XPOS
Y(abs) = YORIGIN + YPOS
WIDTH
Width of the box. Default: WIDTH value of the SIZE command.
HEIGHT
Height of the box. Default: HEIGHT value of the SIZE command.
FRAME
Thickness of frame.
Default: 0 (no frame).
INTENSITY
Grayscale of box contents as %.
Default: 100 (full black)
Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
Units of measurement: The following units of measurement may be used:
TW (twip)
PT (point)
IN (inch)
MM (millimeter)
CM (centimeter)
LN (line)
CH (character).
The following conversion factors apply:
1 TW = 1/20 PT
1 PT = 1/72 IN
1 IN = 2.54 CM
1 CM = 10 MM
1 CH = height of a character relative to the CPI specification in the form header
1 LN = height of a line relative to the LPI specification in the form header
/: BOX FRAME 10 TW
Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
/: BOX INTENSITY 10
Fills the window background with shading having a gray scale of 10 %.
/: BOX HEIGHT 0 TW FRAME 10 TW
Draws a horizontal line across the complete top edge of the window.
/: BOX WIDTH 0 TW FRAME 10 TW
Draws a vertical line along the complete height of the left hand edge of the window.
/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
POSITION Command
Syntax
/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
XORIGIN, YORIGIN
Origin of the coordinate system.
WINDOW
Sets the values for the left and upper edges to match those of the current window (default setting).
PAGE
Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
/: POSITION WINDOW
Sets the origin for the coordinate system to the upper left corner of the window.
/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
/: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
Pre-Setting BOX Position Arguments
You can use the POSITION and SIZE commands to preset some arguments in the BOX command. POSITION presets the start point (upper left corner) of a box or line. SIZE specifies the width and height of a box.
You can use POSITION and SIZE to preset arguments, but you can also set the start point and size arguments of a box or line directly in the BOX command.
By default, if no positioning is specified, the upper left corner of a box or halftone or the top of a line is aligned with current SAPscript window. That is, the upper left corner of the box, halftone, or line starts at the upper left corner of the current window in the active form. By default, the height and width of a box are set to the height and width of the current window.
Use POSITION and SIZE to preset the arguments in a BOX command in the following situations:
The BOX command exceeds the 132-character (1 line in SAPscript) length limitation if you specify all arguments directly in the command. You may exceed this length limit if, for example, you use symbols in a command.
By pre-setting arguments with POSITION and SIZE, you can work around the limitation on the length of a command. You do not need to specify the preset arguments in the BOX command.
You want to use the enhanced capabilities of POSITION for adjusting the starting point of a box or line.
With BOX, you can specify an offset for the starting point only as a whole number (non-negative integer). This command would print a box starting 1 CM to the right and 1 CM down from the left upper corner of a window:
/: BOX XPOS '1' CM YPOS '1' CM
With POSITION; you can adjust the position of a line or box relative to a window much more precisely. In the POSITION command, you can specify positive and negative offsets and use non-integer numbers.
Example: The commands shown below position a box slightly to the left and slightly above a window. This leaves a margin between the edge of the box and the text in the window.
/: POSITION XORIGIN '-.2' CM YORIGIN '-.2' CM
/: SIZE WIDTH '.2' CM HEIGHT '.2' CM
/: BOX FRAME 10 TW
(Note that the box must be enlarged to accommodate the shift. If it is not enlarged, then it will not cover all of the window.)
You can also use POSITION to set the starting point to the upper left corner of the active page format. Example: POSITION PAGE moves the starting point from the active window to the active page format.
You want to use the relative sizing capabilities of SIZE to adjust the size of a box, line, or halftone.
With BOX, you can make only absolute size specifications. BOX HEIGHT, for example, overrides the default height setting to the height of the current window.
With SIZE, you can adjust the size of a box or a line with respect to its previously-set dimensions. The following commands would, for example, draw a frame 1 CM in from the margins of the paper:
/: POSITION PAGE
/: POSITION XORIGIN 1 CM YORIGIN 1 CM
/: SIZE PAGE
/: SIZE HEIGHT '-2' CM WIDTH '-2' CM
REWARD IF HELPFUL

Similar Messages

  • Check Box With Tick Mark on Sap Script

    Hello All,
    We need to add a check box with tick mark on Sap Script.Please can anyone let me know how can we add it.
    Regards
    Amruta

    hi amruta,
    The soluti as an image into on to your problem can be to use the symbol icon as told , but this may show in preview not in print.
    I too faced the same problem.
    So what i had done is created a new window with the diemnsions of the chekc box with border thcikness 8 tw and inside that window place a checkmark symbol.
    if this checkmark symbol also does not show up in print preview/  doesshow in print preview and not in print then you can scan a chekcmark image and upload it into business document server as a BMP/ TIFF image and use this image in your checkbox window.
    Hope this solves your problem.
    Warm Regards
    Venugopal.T

  • 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

  • Text is broken in two pages is sap script

    hi all,
    the text is broken in two pages is sap script also total is also breaking. how to fix the problem?
    sanjay

    Hi,
    First in your window goto the text elements. There choose goto->change editor. Now you will be getting a line editor. Here you have to specify protect endprotect and write your code within it.
    Regards,
    Deepthi.

  • Trying to create box for text but....

    Hi all.
    So I am new to the software.  What I am trying to do is create a box for text.  I want it to be "above" the background so that the background color does not color in the back of the text box.
    An example can be found http://www.tree.com/
    At the "about tree.com" that is (a more coloful, rounded version) of what I am looking for. It is a very common thing to see in sites, I just can't figure it out.
    Thanks,
    Patrick

    Patrick
    Your question is so basic it really requires a fairly lengthy answer, the best advice is for you to find a beginner totorial on html/css. The software is really just a tool, but you really need to understand the underlying code..
    Text, as well as all content sits in elements, which reside in the body of the html code. Each element has its own properties, such as a background color or image. (not to mention the content has its own stylings)  These are set in the CSS (Cascading Style Sheets). So to give you an anwer to your question is not that simple.
    So best adviced is to google beginner HTML/CSS and see what pops up.
    HTH
    Gary

  • Just days ago, I downloaded and created folders for two batches of photos and now they are missing. They were not deleted by anyone, and even if they were, they were not found in my trash can. What happened? They were erased from my camera, so I am upset.

    Just days ago, I downloaded and created folders for 2 batches of photos I downloaded from my camera to iphotos but now both are missing.  They were not deleted and even if they were, were not found in my trashcan. I have looked through every folder and they are not there. Is there a bug that can get into iPhoto to do this? Is there a program Apple offers to retrieve lost photos? Thank you.

    debbie5891 wrote: ... They were not deleted and even if they were, were not found in my trashcan...
    How do you know they were not deleted? Is it possible that they were moved to the trash and the trash has been emptied, if not by you, perhaps by someone else?
    In the best case, you mean they were not deleted from your camera.  If so, it will be simple to merely download again from your camera after you have corrected any problem with your Mac or workflow.
    If you have a way to be certain that your two folders were not deleted from your Mac,  follow the directions provided by your Mac's Disk Utility to repair your Disk (not Disk Permissions.)  On more than one occasion, disk repair has restored the visibility of missing folders I knew I had not deleted.  If you have trouble with the process, post back which specific Mac OS version ( > About This Mac) you are using so we can offer specific help.
    It is also possible that the missing folders might be saved somewhere you do not expect them to be.
    It is also possible that they may merely be invisible and, thus, not showing in your Finder windows even after performing a Disk Repair.
    Here are some more ideas you can consider:
    Restart Mac and then look where you expect the folders to be.  They may be visible there now.
    If not, try a Spotlight search for the folder name(s) you used.  Spotlight may give you a list of places to look.  If you don't remember the folder name(s), try a search for the file type your camera uses for saved images.  My cameras save "jpg" files, but yours may save other image file types. 
    You can also open a finder window and use the window's search oval to search.  The method allows you to use the search "+" button to add invisible items via the "File Visibility"  choice.
    debbie5891 wrote:... I have looked through every folder and they are not there....
    If you are using any version of Mac OS X, I doubt this statement can be true.
    If you select your disk volume name (not the Media item) in the sidebar of your Mac's Disk Utility, you will see that the number of Folders and files on your disk is very large.  For example,I keep my startup disk small and write most of my files to other disks.  Even so, my startup disk contains more than 195,000 folders.
    If you mean you used some software to search each folder, please post back the name of the app you are using.
    debbie5891 wrote: ... Is there a bug that can get into iPhoto to do this? ...
    I have not had the problem you describe, nor have I heard of such an iPhoto Bug.
    I have used every version of iPhoto I have seen including the current new version: iPhoto '11 version 9.5 (902.7).  You can find the version you are using by executing the iPhoto > About iPhoto menu command and post it back here.
    debbie5891 wrote:... Is there a program Apple offers to retrieve lost photos? ...
    I am not aware of any Apple apps that work specifically on photo files.  If you know the pathname to the lost files, and if you are comfortable with Unix commands, you might be able to use your Mac's Terminal utility to retrieve at least some of your images.  However, it will be MUCH simpler to merely download another copy from your camera.
    You can search the Mac App Store for "unerase" to find several apps that can unerase files, including deleted photo files, in certain circumstances even after the trash has been emptied.  To determine whether one or more of them may meet your needs, see their product info and reviews for specifics about each one.
    debbie5891 wrote:...Thank you.
    You're most welcome.
    If you need to post back for more information, please provide specifics on your Mac OS, iPhoto version, which of the suggestions offered here you have tried, and any details not already provided about the problem status.
    Message was edited by: EZ Jim
    Mac OSX 10.9

  • Reset page number to '1 ' for each box of packing list in sap script

    hi Gurus,
    I am running a packing list for delivery note . Many boxes spread across more than one page. I Need to print page number in Packing list for each box like 1 of 2 , 2 of 2. In the new page for next box , I need to print 1 of 1, 2 of 2. and goes on.
    can you suggest a method to achieve this in script.
    thanks,
    manoj

    Hi,
    Could you give me the reply for following question?
    1. Are the boxes changing depends on the data? or static size? How many boxes would be displayed in a page?
    2. Is it your own driver program / standard one?
    3. Suppose if you have 5 pages and having 10 boxes, 2 boxes for each page, then do you need to display like,
    >1 of 1 on 1st box on 1st page
    >2 of 1 on 2nd box on 1st page
    >1 of 2 on 1st box on 2nd page
    >2 of 2 on 2nd box on 2nd page
    >....
    Is it so?
    Once i get these details then I will let u know the way....:)

  • Why cannot create delivery for Sales Ord in SAP, even there is enough stock

    Hello
    I am trying to create delivery for sale order. I did for some lines. But it shows meassage "An item with no delivery quantity is not permitted. Item will be deleted." for the other lines, even there is enough stock.
    Appreciate your comments:)
    BR
    Happy

    Hi Happy,
    Please refer following link for better understanding the concept and functionality :--
    Re: Schedule line control in sales order
    http://www.sapfans.com/forums/viewtopic.php?f=5&t=127586
    Re: Delivery without Sales order? If yes,how can we track those materials?
    Regards
    Rajesh

  • Printing of boxes in Main window of SAP Script at 2 different locations

    Hi Experts,
      I have an requriement in SAP script, I want to draw two boxes. The first box will be at the beginging of main window with 0.5 cm, which is comming perfectly. After the first box I have to display the entries related to a particular table, after the completion of that table I need to draw another box of lenght 0.5cm and the entries related to another table, needs to be displayed.
    I am able to get the first box with intensity, but for the second box I am not getting exact position where i need to draw a dynamic box by filling intensity.
    For that reason i have drawn two ulines and wrote the text, is there any way to fill internsity in between those lines.
    Thanks
    Ravi.

    Hi Sujeet,
    I already tried with that command, the problem is in between two boxes I dont know how many lines of data will come.
    There is a need of drawing a box dynamically.
    Thanks
    Ravi

  • 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

  • How to comapare two clients in sap scripts

    hi,
               how to comapare two clients in sap scripts

    Hi Anil,
    Go to Tcode 'SE71' then choose menu Utilities->Compare Clients, then mention the Form name which u wish to compare, and give target client name and source client name, then execute.
    Regards
    Haritha

  • 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 '元整'(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.

  • What is the tcode to created standard text to include in sap script

    HI
    what is the tcode to created standard text
    i want to include  standary text in sap script
    regads
    Arora

    Hi ,
    If you want to upload a logo , then u can use program RSTXLDMC if it is in .TIFF format or if you want to upload a grphic which is in .bmp then u can use SE78 or directly u can use SO10 also.
    SAPScript Transaction codes
    SE71 - Form painter
    SE72 - Style maintenance
    SE78 - SapScript Graphics Management
    SO10 - Create standard text module
    Reading Text in SAPScripts
    If you only need to output the text, you don't need to used READ_TEXT like in an ABAP program,
    just use the INCLUDE command in SAPScript.
    It will read the text and output it to your form.
    The Syntax is like this:
    /: INCLUDE &T166K-TXNAM& OBJECT &T166K-TDOBJECT& ID &T166K-TDID& LANGUAGE &EKKO-SPRAS&
    Check the following link:
    http://sap-img.com/sapscripts.htm
    Regards,
    Raghav

  • 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.

Maybe you are looking for