How to define variable for smart form in coding

hi all,
i have to create a variable for smart form which is i already created in  smart form but facing some sort of difficulties.
for example:
DATA:  formname  TYPE ZCCCL_GOODS_RECEIPT.(SMART FORM NAME)
DATA:  formname  TYPE ZCCL_RETURN_VENDOR. (SMART FORM NAME)
DATA:  formname   TYPE ZCCL_GOODS_RESERVATION.(SMART FORM NAME)
CASE in_mseg-bwart.
  WHEN '101' or '105' or '321'.
  formname = 'FORM_RECEIPT'.
  WHEN '122' or '124'.
  formname = 'FORM_RETURN_VENDOR'.
  WHEN '201' or '261'.
  formname = 'FORM_GOODS_RESERVATION'.
ENDCASE.
So this the logic im using but it gave me error like:
Type  ZCCCL_GOODS_RECEIPT is unknown.
Kindly tell me if this coding is wrong than what should i use.
Thanks.

Declare variable name for smartform as
Formname type TDSFNAME in import tab.

Similar Messages

  • How to define variable for value range in Bex Query?

    Hi
    How to define variable for Keyfig. value range on runtime like characteristic in Bex Query?
    Example: On runtime user select one of the following condition:
    1)User want to those records where amount is greater than $1000
    2)User want to those records where amount is greater than $1000 and less than $5000
    3)User want to those records where amount is greater than and equal to $1000

    Hi ,
    Need to Use exceptions & conditions for this scenario's  & need to create variable for exceptions based on condtions.
    Below document provides steps how to make selections at run time for a kfg.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e?QuickLink=index&overridelayout=true&48842368468641
    Regards,
    Seshu.P

  • How to define variable for below scenario in report

    Hi,
         iam designing a report in that report  if i enter the user selection was for Fiscal Year/Qtr = 2008/Q3, the data retrieved will be the Fiscal Year/Quarter selection and for the last 20 Launch Year/Quarters based on the Fiscal Year/Quarter i.e. from Launch Year/Qtr 2003/Q4 to 2008/Q3.
         how to acheive this in report. plz help me

    Hi ,
    Need to Use exceptions & conditions for this scenario's  & need to create variable for exceptions based on condtions.
    Below document provides steps how to make selections at run time for a kfg.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e?QuickLink=index&overridelayout=true&48842368468641
    Regards,
    Seshu.P

  • How to configure output for adobe forms in sap,,if i want to pront  an invo

    Hi,
    I used adobe forms in GTS.
    BUt in normal SAP system,i want to use adobe form to print an invoice data.
    I wantt o use the standard form and standard interface for that.
    But how to do configuration for this?
    normally for smartforms we do it in NACE transdaction?
    But for this adobe forms what is the driver program,,where to configure this form and interface.
    Thanks in advance,
    sasi

    Hello,
    it is the same way how you will configure for smart forms.
    Standard driver program is : RLB_INVOICE
    Please go through this link, how to configure print forms for invoice.
    http://****************/Tips/SmartForms/NACE/Configuration.htm
    Edited by: rakhi966 on Sep 9, 2011 9:22 PM

  • How to change the font of variables in smart forms dynamicly

    Dear all,
    Is there any suggestion of how to change the font of variables in smart forms dynamicly?
    Thanks in advance.

    Hi,
    You cant change the font dynamically but tell me the scenario I will try to give the solution.
    Regards,
    Nageswar

  • How to Generate a complex smart form for the Sales Order different pages h

    How to Generate a complex smart form for the Sales Order different pages has different page Layouts  explain me?

    in print program in interface when calling the form there should be some option to tell it to make a NEW spool everytime.
    I have it in mind for sap-script it is ITCPO-TDNEWID. Dont have it in mind for SAMRTFORMS but still it should work somehow similar.

  • How to find the existing request no for Smart form

    Hi Experts,
    plz tell me how to find the existing request no for Smart form in ABAP.
    thanks in advance.
    regards,
    radhika.

    Radhika,
    Choose Goto > Object Directory Entry> Lock Overview On the Initial screen of the "smartforms" transaction, after entering the actual smartform. This would give you the request number for the smartform.
    Regards
    Narasimhan

  • How to create barcode in Smart Forms with MS Word as Editor?

    Hi,
    I created a character format for a barcode in a smart style.
    The problem is that I do not know how to assign it to the text in Smart Form because the Editor is MS Word and not the normal Editor.
    Any suggestion or idea.
    Thanks & best regards
    Viktoria

    Hi and thanks for the fast reply,
    I have created a smartstyle and also a characterformat for the barcode. This is not the problem.
    I call the layout via HRFORMS. The Form Builder for Smart Forms is called and the Editor for the text nodes is preset and is the MS Word editor. This cannot be changed. I tried different things also in the settings. The normal text editor cannot be called.
    I choose and enter the field that I want to convert into the barcode &wa_barcode&. I do not work with standard texts (SO10). The text field is a normal text node in Smart Forms. The character format that applies converts the number in the variable field into the barcode.
    In the MS word editor I have only formats that are in the office environment (arial, ...) I do not see the formats that I created in smartstyle also when I assign it in the output options of the text node.
    So maybe I have to work like this for now. Swich between HRFORMS and SMARTFORMS when working with barcodes. In the Smart Forms transaction it is the normal editor where I can see the paragraph/ character formats from smartstyle.
    Thanks and best regards
    Viktoria

  • How to print bullet in smart form

    Hi Experts,
    I have a requirement in smart form  where different points of texts should come under a bullet.
    Can you please tell  me how to print bullet in smart form.
    Note : I have to use Standard text   
    Thanks in advance
    Bikas

    hi
    good
    We can create bullets in smartforms.
    For this change the editor to text editor and then
    goto insert->characters->SAP Symbols and select the
    symbol you want.
    This may help your requirement.
    You cannot see the bullets in print preview, it'll
    appear only on a hard copy.
    reward point if helpful.
    thanks
    mrutyun^

  • How to Mask URL in Smart forms

    Hi,
    i wanted to mask the URL in my smartform so that it is concise and readable, like suppose url is like this http://www.myurl.com/pages/abcd&attr=19093  i wanted to create text which is something like click here  on clicking click here it should take me to the desired page which the above mentioned URL ( http://www.myurl.com/pages/abcd&attr=19093 ) actually navigates.
    How can i achieve this Smart forms??
    Please suggest
    Edited by: kranthi kumar on Oct 29, 2010 12:56 PM
    Edited by: kranthi kumar on Oct 29, 2010 12:59 PM

    Hi Aidan,
    Thanks for your answer, Just got an alternative solution, when i got XSF output from smartform function Module, the same XSF  output (me->sf_job_output-xmloutput-trfresult-content) i used in below method to convert to string.
    CALL METHOD cl_hrrcf_cs_sf=>convert_xsf_html_to_txtstring
            EXPORTING
              content     = me->sf_job_output-xmloutput-trfresult-content
            IMPORTING
              html_string = me->doc_properties-output_c
              html_tab    = me->doc_properties-output_c_tab.
    later i realised that URLs in the smartform has got corresponding HTML code as below in the (me->doc_properties-output_c_tab).
    <a href="https://www.google.com">
    <span>
    https://www.google.com
    </span>
    </a>
    when i changed the link in the debugger  https://www.google.com  which was inside
    <span> </span>
    to "Click Me", the output was as i expected in the E-Mail which showed me Click Me and when i click that it took me to google web site.
    so i decided that i would change this table(me->doc_properties-output_c_tab.) for every URL in code, though it did not seem like right solution, as suggested in this forum there is no straight solution for this, i have no other option.
    Please comment.
    Thanks,
    Kranthi.
    Edited by: kranthi kumar on Oct 29, 2010 9:43 PM
    Edited by: kranthi kumar on Oct 29, 2010 9:44 PM

  • How to define variables in toad sql script editor - newbie

    I have just pull out the script of a Function and want to run it on toad SQL editor.
    I am little bit confused how to define the VARIABLEs here in toad SQL editor to run my script.
    SELECT
    NVL(SUM(debit), 0) - NVL(SUM(credit), 0)
    INTO l_accountBalance
    FROM
    GLP_VoucherMaster vm
    INNER JOIN GLP_VoucherDetail vd ON vm.GLP_VoucherMaster_ID = vd.GLP_VoucherMaster_ID
    INNER JOIN GLP_ChartOFAccounts coa ON vd.GLP_ChartOfAccounts_ID = coa.GLP_ChartOfAccounts_ID
    WHERE
    vm.isActive = 'Y' AND vd.isActive = 'Y'
    -- *** how to define variables in toad sql script editor ***
    AND vm.voucherDate < p_cDate
    AND coa.AccountCode LIKE p_accountCode || '%';
    Thanks
    w\

    Just prefix with a colon (:)
    SELECT   NVL (SUM (Debit), 0) - NVL (SUM (Credit), 0)
      INTO   L_accountbalance
      FROM           Glp_vouchermaster Vm
                 INNER JOIN
                     Glp_voucherdetail Vd
                 ON Vm.Glp_vouchermaster_id = Vd.Glp_vouchermaster_id
             INNER JOIN
                 Glp_chartofaccounts Coa
             ON Vd.Glp_chartofaccounts_id = Coa.Glp_chartofaccounts_id
    WHERE       Vm.Isactive = 'Y'
             AND Vd.Isactive = 'Y'
             AND Vm.Voucherdate < :P_cdate
             AND Coa.Accountcode LIKE :P_accountcode || '%';
    /:p

  • How to disable debugger for sapscript forms.

    How to disable debugger for sapscript forms.
    Once activated in se71-Utilities-Activate debugger I do not know how to disable it

    Thank you Rich
    I assigned you points for good answer on my preavious mail)
    . Actually my real problem is a transported the SAP script form “znalepke2” , printer definition ”nale”
    and device type “zststartsp” of a thermal printer.
    On original system (ak1) the printout is ok but on target system(ak2)
    not.
    Lateron I transported also :
    R3TR SCPD 1403(as the device type uses this character set)
    R3TR TABU TSP08 (All entries)
    R3TR TABU TSP1D(All entries)
    R3TR TABU TSP1T(All entries)
    I used also report  RSTXSCRP to traport form and device types. L
    Lately I discovered that when I performe printout preview I get also eronneous printout If I ssue an printout preview in language "EN" on system "ak1"(only on system ak1 and form preview in "SL" is oK. What steps you suggest me to solve the prolem
    Thank you in advance

  • Good morning everyone! I would like to ask how can i subscribe for adobe forms central 11.99$ per month. I am currently here in United Arab Emirates. I really need to use this application cause it will benefit me a lot in my work. Thanks!

    Good morning everyone! I would like to ask how can i subscribe for adobe forms central 11.99$ per month. I am currently here in United Arab Emirates. I really need to use this application cause it will benefit me a lot in my work. Thanks!

    Hi,
    OK. Following instructions, I've uninstalled the old Flash Player and installed the right one, and videos are now playing. Thanks for pointing me to the other posts on this site. YouTube and other videos are now playing
    Some of the videos still play jerkily (they don't stream evenly). A few stream evenly once they've been allowed to buffer fully. (I think I'm using these terrms correctly.) Is this solely caused by low bandwidth, or is there something—an adjustment of some kind—that I can do with Flash Player to have online videos stream evenly, even from the moment I start them?
    As I mentioned, to bypass this uneven streaming while watching online, I download the videos and watch them usually using Quicktime Player 7.6.4. Still, they don't always play evenly, but for the most part do.
    I've just tested bandwidth and I'm told:
    5.63 Bbps Download speed
    0.63 Mbps Upload speep
    Rafael

  • SAP Vendor Master Communication Details for SMART FORM Printing.

    Hi
    Could you please advice Functional module to extract SAP Vendor Master Communication Details for SMART FORM Printing.
    Thanks in Advance.
    Regards
    Ravi

    Hi Ravi,
    I don't know about a function module, but the vendor master table LFA1 has a field ADRNR pointing to the general address table with the fields for e.g. language and to the tables ADR2 for phone numbers, ADR3 for fax numbers and ADR6 for e-mail addresses.
    BR
    Raf

  • How to create Variables for the Key Figures

    Hi All,
    How to create Variables for the Key Figures
    Thanks
    Bhaskar

    Hi,
    It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
    With rgds,
    Anil Kumar Sharma .P

Maybe you are looking for

  • How do I install a camera profile into CS2 raw converter

    I recently purchased a ColorChecker Passport and along with the software, created a camera profile for my Olympus E-300. The CCP software crated a camera profile that was duly placed into the c:\users\<username>\AppData\Roaming\adobe\cameraraw\camera

  • 1.5 mile AP to WGB connection questions

    Hello all.  I am new to the forum and have just enough networking skills to be dangerous. A+ and Net+ Certs in 2000.  Self taught on my AP's and I am now finally to the point that I need help.  Bare with me. I have 2 Cisco 1200 G AP's connecting 2 di

  • Adobe cs6 hanging on my system

    hello why its hanging too much make my system like very slow hard drive keep on reading and reading

  • Moving from synced Lightroom mobile collection to external hard drive collection

    How do I move "From Lightroom Mobile" Catalogues to external NAS drive? Mobile workflow is: Take photos with iPhone an adding them to collections on Lighroom mobile. Those photos get sync'd to Lightroom on the desktop, creating a catalog on the deskt

  • Diffference between coding in Windows and Unix

    I have coded some servlets and jsp under windows environment .. How different is it to do the same in a unix environment ? How do I go about coding java with unix?