Question reg. sapscript

I have two fields:
&EKPO-NETPR&
and
&EKPO-PEINH&
on a sapscript form main window. When I write in mainwindow:
&EKPO-NETPR&/&EKPO-PEINH&, it is expected on the output. For ex, if netpr is 50 and peinh is 1, the output has to show 50/1 whereas it is showing now
50/     1
(I mean with spaces after that ' / ' ). What can I do to remove these spaces?
Thanks for your input.

hi
tri this one
shift ekpo-peinh  left deleting leading space.
regards
Usman

Similar Messages

  • Question reg. sapscript. please help

    I am modifying a standard medruck sapscript form for the customer needs. Now on the printout, if i want the text under 'item_text' text element to come after the text under'ITEM_SCHEDULE' text element, where should I change the code? in main program ? or in form itself? Please give me an idea reg. this.
    /E           ITEM_TEXT
    IC           ,,&TTXIT-TDTEXT&
    /:           INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID& LANGUAGE &
    /E           ITEM_SCHEDULE
    IM           ,,,,,,&RM06P-PRMG1&,,&T006A-MSEHT&,,&RM06P-PRITX& &RM06P-LFDAT&,,,,
    =           &RM06P-PHTXT(27)&
    Thanks a lot,
    Krishen

    Yes it will, and yes you will have to copy a couple of things,  first you will need to copy the driver, program SAPFM06P into custom program SAPFZM06P.  Then copy function group MEDRUCK into ZMEDRUCK with all the function modules,  then go to the SAPFZM06P program and copy the include program  FM06PE02 into ZFM06PE02 and include this in the main program SAPFZM06P,  inside the  ZFM06PE02, change the call in the  ENTRY_NEU form to call the "Z" version of your function module in the ZMEDRUCK function group.
    form entry_neu using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      call function 'ME_READ_PO_FOR_PRINTING'
           exporting
                ix_nast        = nast
                ix_screen      = ent_screen
           importing
                ex_retco       = ent_retco
                ex_nast        = l_nast
                doc            = l_doc
           changing
                cx_druvo       = l_druvo
                cx_from_memory = l_from_memory.
      check ent_retco eq 0.
      <b>call function 'ZME_PRINT_PO'</b>
           exporting
                ix_nast        = l_nast
                ix_druvo       = l_druvo
                doc            = l_doc
                ix_screen      = ent_screen
                ix_from_memory = l_from_memory
                ix_toa_dara    = toa_dara
                ix_arc_params  = arc_params
                ix_fonam       = tnapr-fonam          "HW 214570
           importing
                ex_retco       = ent_retco.
    endform.
    You must then change your configuration for the purchase order to tell the system to use the "Z" versions of the print program SAPFZM06P
    Regards,
    Rich Heilman

  • Question on sapscript

    Hi all,
    I have the following question :
    In my abap program u have the following:
    data : WA_count type i.
    select single * from nast where kappl = 'EV'.
    after this statement is nast-anzal = 1 (type of nast-anzal is
    DEC2).
    wa_count = nast-anzal.
    so far so good.
    On my sapscript :
    /:    if &wa_count& = 1.
          One
    /:    else.
          Others
    /:   endif.
    The word 'Others' is printed (i accept One ).
    Its seems simple but i dont know what i do wrong.
    I tried also with : if &nast=anzal& = 1 ('1'  eq ..etc)
    Thanks

    Hi Adel,
    Can you change your WA_COUNT declaration from type I to NAST-ANZAL type and try again.
    DATA WA_COUNT TYPE NAST-ANZAL.
    /: if &wa_count& = '1'.
    One
    /: else.
    Others
    /: endif.
    Thanks,
    Vinay

  • Reg SAPScript New Font

    Hi Friends,
    I have a question regarding SAP Script. I need to change the existing font of one text to Arial Font. So I have to create a new Paragraph format while creating I couldnt find the Arial Font....
    How do I achieve this...
    Your help will be appreciated....

    Hi Friends,
    In a SAPscript form , I believe Paragraph formats, Character formats, Layout , Windows and Page Windows are found at the top ( below the menu bar ).
    I couldnt find Windows and Page Windows in my Sapscript. As I need to edit some of the Windows & its texts is there any other way apart from going through the layout set.
    Your suggestions will be appreciated....
    Leo

  • Hi, everyone, a question about sapscript?

    Hi, everyone,
    My sapscript have one page and next page is the same as the first page, the page have two window, a var window and a main window, in the main window there is a command at the top that is "/: BOX FRAME 10 TW". and when I preview the form there is two page and in page 1 there is frame but the next page doesn't have frame, I don't know why, can anyone tell me why? thank you in advance!
    Kind regards
    Dawson

    hi,
    The box will not be carried by the main window to the other page this is because, the main window will be having the changing content, and as we define the main window only once the box appears only once. the remaining data in the main window will increase according to the content in it. so prepare your box in a variable window and define it in all the pages so your box will be coming in all the pages. overlay the variable window on the main window. with the same size..
    you can refer to the link with same kind of query
    [BOX IN SAP SCRIPTS|Re: sapscript box nto printed on all pages]
    have a good day,
    regards,
    sarves

  • Basic question reg. distributed installatio

    Hi everybody,
              i have a very basic question, for which i wasn`t able to find a simple
              answer/solution.
              I am planning to set up Bea in a distributed environment. the idea is
              to have a physical machine for the presentation, meaning
              webserver/jsp/servlets in the dmz1 and a machine with the application
              server holding ejbs in a different dmz.
              This results in an architecture where the presentation layer only can
              be contacted via http/https by the users and the logic layer
              communicates with the pres. layer via RMI/T3.
              Is there any documentation on such a setup ? any hints ?
              Thanks in advance, i'll keep on searching the dox.
              Berthold Krumeich
              

    [att1.html]
              

  • Reg. sapscript in spanish

    I am trying to print some sales orders using spanish version of sapscript. Are the material descriptions supposed to come in Spanish? I am not getting so unless I change the descriptions of materials in Material-Master to spanish.
    What should I do so that I get the material descriptions in spanish when I print them (with out changing the descriptions to spanish in Material-Master)?
    Thanks a lot.

    Hi ,
      My understandind is that the selection of material description is done based on the login language , because wheren ever we select these type of texts we always add the condition <b>spras = sy-langu</b>.
    So what i would suggest is that either you logon to in Spanish language and test it or debug the driver program and set the language to spanish.
    Please try this and in case of any concerns please revert back.
    Regards
    Arun

  • Question reg. output type

    I copied and modified sapscript MEDRUCK for three forms RFQ, Scheduling agreement and Contract (all are MM module). Now I am trying to set up output type for these forms in NACE transaction. Can you tell me what applications and output types to chose from there?
    (I know for RFQ, it is application EA and output type NEU, what about for the other two?)
    I appreciate your input.
    Thanks in advance.

    Thanks Anurag. I too think it is EV. What about the output type?
    The forms I modified for Scheduling Agreement and Contract are almost the same. I think just by assigning to a different output type, the data flow can be different for these two forms? Please correct me if I am wrong.
    Thanks a lot.

  • Question reg Forecast funtions in Oracle

    Hello Everybody,
    Is there a function(s) in Oracle that's equivalent of FORECAST function in MS Excel ?

    This is the forum for Oracle's SQL Developer tool, not for general SQL and PL/SQL questions.
    Questions like this will get a better response in the PL/SQL forum.

  • Question reg sample init files??

    I was looking for sample init files
    I found the following files in Windows
    initsmpl.ora under C:\Oracle10g\product\10.2.0\admin\sample\pfile
    initdw.ora under C:\Oracle10g\product\10.2.0\dbs
    and in UNIX AIX
    -rw-r----- 1 oracle dba 8385 Sep 11 1998 init.ora
    -rw-r--r-- 1 oracle dba 12920 May 03 2001 initdw.ora
    under /oracle/OraHome2/dbs
    I can see initdw.ora for datawarehouse databases
    I have following questions
    1.Are these are the only files I have mentioned are there or are there any more
    sample files i have missed?
    2. initsmpl.ora or init.ora are for which kind of databases ?General purpose or OLTP or?
    Thanx
    Gagan

    Hi,
    1 Those are the same files
    2 There are no special files are created for OLTP or DatawareHouse DataBases.
    These files are unique for different type of database you may choose. Only the parameters values will be
    adjusted based on the Environment upon which we create the database. It's parameters changes during the
    Course of Tuning of your database.
    - Pavan Kumar N

  • Simpel question reg. Windows 8

    Hello World !
    Simpel question: can I install and run all programmes in the CS5 (not the CS5.5) on a Windows 8 without any problems and/or limitations?
    Where can I find the simpel answer to this simpel question on Adobe's websites ??
    // Magnus

    You can't find a simple answer because it doesn't exist. Too many specifics involved liek Win 8 using a different graphics driver model, different CoDecs, a different print engine and what have you. You will find out when you try, but not before.
    Mylenium

  • Question about Sapscript

    Hi, i want to know if i have a program with print button, call a sapscript two times.
    The first call for obtain the otf data and download to PC and the second call for show the print preview screen.
    I tried to do the two activities at the same time.
    itcpo-tdnoprev   = ' '.
    itcpo-TDGETOTF = 'X'.
    CALL FUNCTION 'OPEN_FORM'
           EXPORTING form = tnapr-fonam
                     language = ekko-spras
                     options = itcpo
    CALL FUNCTION 'CLOSE_FORM'
      IMPORTING
         RESULT                         = RESULT
         RDI_RESULT                     =
       TABLES
         OTFDATA                        = DATAB[]
    But it didn´t work, i got the otf data, but no print preview screen; so i suppose to call the sapscript two times will resolve my problem.
    Thanks

    Hi Jos,
    No need of calling the sapscript two times...What you have declared is correct
    itcpo-tdnoprev = ' '.
    itcpo-TDGETOTF = 'X'.
    [Converting SAP Script outputs to PDF file|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556]
    Regards,
    Sravanthi

  • RE : BI APO Question Reg Data feeding from cube to Planning area.

    Hi BW Experts,
    iam working in an Implementation project for SCM in BW prcisely working with APO Bw..
    For that I have taken historical data as a flat file and loaded it in to the external BW Infocube and its fine...
    Second step I have created generate export datasource on topr of BW infocube and replicated in to Bw and used this export datasource as datasource for APO BW Infocube which is inbulit BW System from External Bw..
    also I have created tranformations and data is loaded in the BW cube in APO system.Also Included Version charecterstics..
    When I try to fed the APO Cube data to planning area Iam gettinga the following  warning itsnot an error:
    1.Key figure copy: InfoCube - planning area (DP) 01.01.2010 to 31.12.2010-- Successful
    *2.No data exists for the selection made (see long text*
      Diagnosis:Data could not be loaded from the Cube for the selection you made. Check whether the Cube actually contains data that is relevant for your selection.
    For the second point I have time charecterstics filled in the infocube which Iam feding to a Planning area like 0CALMONTH,0CALWEEK,FiscVarnt,0CALMONTH
    3.Characteristic assignment: No data copied --- Message
    Can you please help me with your thoughts so that i wll try to corner the issue I will be highly obliged

    Hi,
    As I understood, you have loaded data from external BW cube to APO BW cube and now loading planning area from APO BW cube.
    I hope your settings in /SAPAPO/TSCUBE transaction code would be correct and you have selected the correct planning version with correct cube.
    Check if Data in APO BW cube is available for reporting or not and data is avilable for given selction (if any but I guess you are not giving any).
    Thanks,
    S

  • Question reg. modifying latest record in internal table

    Can you tell me if it is possible to modify the last appended record to the internal table?
    I just want to modify the record in the internal table which is appended at the latest. Please tell me the logic for this.
    Thanks a lot,
    Krishen

    Hi try with this:
    DATA line TYPE I.
    DATA wa_itab TYPE LINE OF it_itab.
    DESCRIBE TABLE IT_TABLE LINE line.
    READ TABLE IT_TABLE INTO wa_itab INDEX line.
    WA_TABLE-FIELD = 'new value'.
    MODIFY TABLE IT_TABLE FROM wa_itab
           TRANSPORTING field.
    Best regards.

  • Question reg. selection screen

    I am writing a report. On selection screen, I have a field for Sales order (vbeln) from a custom table zsales.  Now when the user selects this field on selection screen and press F4, he/she should be able to select the salesorders from the table zsales.
    I wrote:
    SELECT-OPTIONS: s_vbeln FOR zsales-vbeln.
    But on the output, when I press F4, I am still not getting any input help. What change can you suggest?
    Appreciate your input.
    Thanks,
    Krishen

    Try something like this.
    report zrich_0001 .
    tables: zsales
    data: begin of izsales occurs 0,
           vbeln type vbak-vbeln,
          end of izsales.
    select-options s_vbeln for zsales-vbeln.
    initialization.
      select vbeln into table izsales from zsales.
      sort izsales ascending by vbeln.
      delete adjacent duplicates from izsales comparing vbeln.
    at selection-screen on value-request for s_vbeln-low.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'VBELN'
                dynprofield = 'S_VBELN'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = izsales.
    start-of-selection.
    Regards,
    Rich Heilman

Maybe you are looking for

  • NEGATIVE STOCK

    Dear All, We are facing a problem on  a particular date stock of some materials is showing in negative because issue qty is greater than receipt and stock qty. How it is possible that material is issued even if it is not in the stock. is it configura

  • My ipod nano keeps coming up with messages when i plug into laptop. i follow instructions but it doesnt work

    I found my old iPod nano, I attempted to plug into my laptop but it comes up with loads of messages and doesn't seem to do anything

  • Converting spool ouput into ms word format

    Dear experts, I need to convert a spool request into MS WORD format. Can any one show me the right way to do this ? With Regards Ravishankar Vembu.

  • Finder not showing correct free space for DROBO

    I have replaced a "working" 16TB (8*2TB drive) DroboPlus with (3*4TB +5*2TB) drives after a low space warning ( just under 1TB free with double redundancy) I Am having the problem with free memory being shown as 439.4 Mb from Yosemite finder for my F

  • No Picture, Same Format

    I have 2 MP4 video files on my PC (OS Windows 7 Home Premium 32 bit).  The first one is 23.0 MB/ 09:57 minutes long.  The second 373 MB/ 01:27 minutes (hour and 27 mins long).  I have copied both of them to the miniSD memory card (1 GB) on my Nokia 6