Field in script

Hi,
can any body tell me how to input new field in sapsript without changing standard sap program.
e.t.c to change user on invoice report.

hi nick,
use <b>PERFORM</b> stmt.
/: PERFORM MY_FORM IN PROGRAM ZPROGRAM
/: USING &VAR1&
/: USING &VAR2&
/: USING &VAR3&
/: USING &VARN&
/: CHANGING &VAR_OUT1&
/: CHANGING &VAR_OUTN&
In the program ZPROGRAM
FORM MY_FORM tables in_tab structure itcsy
out_tab structure itcsy.
data: varn like ....
read table in_tab with key name = 'VARN'.
if sy-subrc = 0.
move in_tab-value to varn.
endif.
read table out_tab with key name = 'VAR_OUTN'.
if sy-subrc = 0.
move <value> to ot_tab-value.
modify out_tab index sy-tabix.
endif.
ENDFORM.
http://help.sap.com/saphelp_erp2005/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm

Similar Messages

  • Adding field in script layout

    Hi,
    My requirement is adding one more field to script layout output but i if i added that field then page exceeds the output, they mentioned tab gap between fields, how to reduce tab gaps.
    can u please provide procedures how to achieve it.
    Best regards,
    Ravi

    Hi
    Check in the Line where u want to write/include ur new field  &LV_NEW& ..
    example
    OLD line             T1   &REGUD-SWABZ(15)&,,&REGUD-SWRBT(16)&
    New Line           T1   &REGUD-SWABZ(15)&,,&REGUD-SWRBT(16)&,,&LV_NEW&
    Also Check that  T1 in Paragraph Formats how many Tabs are declared and change the TAB spaces accordingly...
    surya

  • Table fields in script

    how to dispaly the table fields in script. it is like normal report form .. can we?
    Regards,
    pandu.

    hi,
    you need to display the table fields like below
    /:  &FIELD1&&FIELD2&&FIELD3&
    If it is a Internal table, then you need to create a Element in the main window and call that element in the Driver program and write the code in teh Driver Program, you need to call this Element using the WRITE_FROM with in the LOOP and ENDLOOP.
    Regards
    Sudheer

  • How to left justified the value of the field in script

    hai
    how to left justified the field in script
    for example i am having a field &wa-netwr& , how to left justified the value of this field in scripts
    thank u in advance

    one way is define a paragraph format P1 and in that attributes,you can give LEFT justified(by creating TABS).
    and give that paragraph format in the script editor.
    P1   ,,text
    here ,, denotes tab position.
    or
    use  &wa-netwr(C)& <--for condensing .
    Regards
    Srikanth

  • Highlight required fields via script...

    Does anyone know how to highlight all of the required fields via script?
    Acrobat displays a checkbox for highlighting required fields, but it
    is unchecked by default and the user has to click it each time they open
    the document. I have yet to see a way to set it as a preference in
    Acrobat or Reader and I don't see any way to enable this via an
    initialize script either.
    Any ideas?

    [email protected] wrote:
    > Justin,
    >
    > This line should work...
    > app.runtimeHighlight = true;
    >
    > I try using it in the initialize event for the page but the results are inconsistent. I am having other issues so we left this one alone for the moment. If you get it to work consistently please let me know.
    >
    > - Yolanda
    Yolanda,
    This highlights ALL fields. I want to highlight only the required
    fields.
    Justin

  • Marketing attribute in the text field, interactive script

    Hello Gurus,
    We are facing a problem in the interactive script, of the sap crm 7.0.
    We know the possibility of set some of the customer data into the
    script by filling bdc field inthe test field and then adding this text
    field to a script question.
    We did it in the customer data "***" by filling the bdc field with "ext
    field marketing attribute interactive script" and this data is showed
    in the script, but we can not show marketing attribute data in the
    script by using text field and bdc field.
    There is a possiblility of showing the marketing attribute in the text
    field or it is imposible due the structure of bol in crm.
    Thanks  in advance.

    Hello ,
    To display or change the marketing attributes of a business partner in the script follow these steps:
    1.  Run the Interactive Script Editor.
    2.  Create a new Question and in the Answer Area drag and drop the "Marketing Attribute" dynamic answer.
    3.  Select the "Marketing attribute will display here when executing the script" object and go to tab "Dynamic Content Parameters".
    4.  Select the attribute set and the attribute name.
    5.  Save the question.
    6.  Drag and drop the question to your script.
    7.  Change the template of the question node to either "Person Marketing Attributes" or "Organization Marketing Attributes" depending on what type of business partner is expected to be confirmed at run time in the IC_AGENT role.
    8  Save the script.
    9.  Run IC_AGENT or similar IC role.
    10. Confirm an organization ( if you used "Organization Marketing Attributes" ).
    11. Run the script.
    When you reached the question maintained above, the marketing attributes will render for that business partner, if they exists or will be created if they don't exists . To be created a button that will do a navigation is required. It means that the question will have to be linked to a next question or to itself by this button (to itself is required only if it is the last or the only question in the script). To suggest to the user that he or she has to click on the button, to save, is probably better to name the button "Save".
    Octavian

  • UCCX 9.0 - Issue Retrieving Dialer fields in script editor

    Hi Experts,
    In IVR campaign I am trying to retrieve BAAccount number field in the script editor but no success. I tried the below options in the UCCX script editor but it didn't work. Once contact is uploaded, dialer fields are sent to IVR application by default or is there any settings we need to do in UCCX admin? Thanks in advance for your help!
    1) Tried through ECC variables in Get Enterprise Call Info element
    2) Getting as session data through Get session element
    Thanks
    Rajasekar

    Adding Anirudh Ramachandran  and Abhiram Kramadhati

  • '#' unexpectedly inserted into output fields in script print preview

    Hello Experts,
    I came across a problem that confused me so much that when i try to see the print preview of a script form, the output fields in Main window were all printed with '#' inserted, as below:
    the output is like 7#8#0#0#0#....but it should be 7800017167
    and also, for other fields like date and amount, the same problem occurs.
    But the most weird thing is that, the issue only occurs in the Main Window of the second page of the form, but not in the first page although they share the same  Main Window. And what's more, it only happened in the Testing System, I can not replicate them in develop system...
    I know it may be a very isolate problem, but i just want to try my luck to see if any of you could shed me some light~
    Thanks!

    Hi Siva,
             Can you tell me please, wheather its a "Z" driver program or Standard driver program.
             After execution of the program/transaction code go for <b>systems</b>> then for <b>Status></b> then you can find the <b>program name.</b> You can go into that and search for  the <b>Open_form</b>. Before Open form set the <b>BreakPoint</b> there you can find the form name which will pass during run time through variable.
             other option is that go for <b>NACE</b> transaction and see for <b>routine,</b> <b>for example</b> If it is invoice then it will be Billing. select your that<b> area</b> and click on <b>Output type button.</b> there you can see the output types You can go in that and see for program and form name, then you can confirm the output type.
    reward point if it is helpful.
    Regards
    Sagun Desai.

  • Add fields to script?

    Hi,
    I want to add one field in the output of the script please let me know the step by step procedure.
    regards,
    vijay

    Hi Vijay,
    Can you make your requirement clearer...? If you are new to SAPScripts, please refer these documents...
    http://www.esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://www.esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    symbols in scripts
    http://www.esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    script command
    http://www.esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    totals using scripts.
    http://www.esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    totals using scripts.
    http://www.esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    Regards,
    SP.

  • Two fields, two scripts. User can enter data into field 1 or 2

    Hi all,
    New here, and to acrobat forms, so please bear with me!
    What I'm trying to achieve is a form that calculates total invoice value, based on a total number of hours worked, and a rate. The user fills in the total hours, but then the problem is that some people know their fixed rate, and others have a changing rate. Those with a changing rate simply know the amount they are invoicing for. What I'd like, is a way for the TotalInvoice value to be calculated by Rate*TotalHours when the user enters a value into the Rate field... OR ... for Rate to be calculated by TotalInvoice/TotalHours when the user enters a value into the TotalInvoice field.
    I can make it go one way or the other (so the script is only in TotalInvoice field or the Rate field), but I can't manage to get it to go both ways. Is this possible?
    To summarise: User can enter manually into Field1 and value of Field2 is calculated, or user can enter manually into Field2 and Field1 is calculated.
    Thanks!

    What you propose can be difficult, becuase you're describing a circular reference between the two fields. When the 1st value changes, you want the 2nd value to be calculated based on the 1st value. But when the 2nd value changes, you want the 1st value to be calculated based on the 2nd, ad infinitum. There are ways to short-circuit the loop, but it depends on whether you need to do the calculation only when there is manual entry, or whether you need it to work when either field value changes programmatically or by importing form data.
    Sometimes it's just easier to have the user press a button to calculate and set the other field value.

  • Copy a field value to another field using scripting

    Iam trying to capture a ALV grid fieldss using the scripting.
    we have a ALV grid in my R/3 program and in that there are 2 date fields VALUTL and VALUTP with 2 rows. Now if the date is blank in any of the field then value that exist in the corresponding field should be copeid.
    Do i need to loop the grid values ?
    Could any one you help me in corecting the below code.
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell 0,"VALUTP","19.04.2011"
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell 0,"VALUTL","06.06.2011"
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").currentCellColumn = ""
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").selectedRows = "0"
    session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
    Thanks,

    Iam missing something in the below code.Not able to update the date in the feild that was empty.Could some check
    Set GRID = session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell")
    RowCT = GRID.RowCount
    For Row = 0 To RowCT - 1
    GRID.setCurrentCell Row, "VALUTL"
    GRID.selectedRows = CStr(Row)
    cell = GRID.getcellvalue(Row, "VALUTL")
    cell1 = GRID.getcellvalue(Row, "VALUTP")
    If cell <> "" And cell1 <> "" Then
        GoTo 50
    End If
    Next
    50 For Row = 0 To RowCT - 1
        GRID.setCurrentCell Row, "VALUTL"
        GRID.selectedRows = CStr(Row)
        valu = GRID.getcellvalue(Row, "VALUTL")
        valp = GRID.getcellvalue(Row, "VALUTP")
        If valu = "" Then
           session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell Row, "VALUTL", cell
           session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
           session.findById("wnd[1]/tbar[0]/btn[0]").press
        ElseIf valp = "" Then
            session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").modifyCell Row, "VALUTP", cell1
            session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
            session.findById("wnd[1]/tbar[0]/btn[0]").press
        ElseIf RowCT = GRID.RowCount Then
            'session.findById("wnd[0]/usr/cntlSCREEN_9001/shellcont/shell").pressToolbarButton "UPDA"
       'session.findById("wnd[1]/tbar[0]/btn[0]").press
        End If
       Next

  • How to assign money value to CRM money field in Script component?

    Hi All,
    Can anyone please help me with below issue?
    I have a money value (eg. 25.00) in the SQL table (Source) of type string which I am reading it in script component and want to push that same to MS CRM(destination) currency field.
    I have used Money class but still it is throwing the exception "System.InvalidCastException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #444AFC47"
    Used this lines of code. Please let me know if I am doing anything wrong and help with resolution.
                    if (!Row.Amount_IsNull)
                        Money Amount = new Money();
                        Amount.Value = Convert.ToDecimal(Row.Amount);
                        newTbldetails["new_amount"] = Amount.Value;
    Note: new_amount is the attribute in MS CRM (destination) with type Currency.
    Thanks,
    Sri

    This below code worked. There was a mistake in the assignment.
                    if (!Row.Amount_IsNull)
                        Money Amount = new Money();
                        Amount.Value = Convert.ToDecimal(Row.Amount);
                        newTbldetails["new_amount"] =
    Amount;
    Thanks,
    Sri

  • ICM available field in script editor

    Need to understand , while we monitor the ICM script and click on the display real-time statistics. Under the skill group section I can see various columns like - Logged on, Ready, Idle, wrap up, work not ready. Can somebody please explain me waht is the coulmn which says" IA" - which is ICM available?? and how it is different when compared to Ready column?
    Thanks                  

    ICM Available = agent is Available, may be given a call
    Ready = Agent logged in, ICM says "I can see the agent"
    ICM Available != Ready in the context of the ICM Script Editor
    G.

  • Editing RichText fields using scripts

    Hi There,
    I have a text field with rich text format. I need to add a new line character if the length of a sentence exceeds 65 characters. When I edit the text value using javascript the formating breaks and the signature event fails eventually. Is there a way to edit the body of the text field value? I realized that the value is store in text/html.
    below is sample:
    Before edit:
    <txtOtherDocuments><body xmlns="http://www.w3.org/1999/xhtml" xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1">
         <p style="margin-top:0pt;margin-bottom:0pt;font-family:Arial;font-size:8pt;text-decoration:n one">Test Data</p></body>
    Please help.
    Thanks

    If you're using LiveCycle Designer, I'd suggest posting this on the Designer forum here.

  • Aligning an amount field in script

    Hi,
    On the output page i want to print the amount value. I want that amount to be printed in right alignment. But it is not working.
    I used the code as &itab-amount(R)&.
    if i do not put R it goes to left alignment. I also tried compressing it too does not works . can anyone tell me what could be the problem and how to solve this one.
    Thanks,
    Rose.

    Hi,
    You can use the SET SIGN command to output the leading sign at the left or right.
    /: SET SIGN LEFT
    /: SET SIGN RIGHT
    seshu.

Maybe you are looking for

  • Oracle service, Listener and http server does not start automatically

    Hello, I have Oracle 9i release 2 installed on Unix HP box if system restart in case of power failure the Oracle service, Listener and http server does not start automatically, is there any ready reference available to check what's wrong is happening

  • My files disapeared off of my desktop upon Disk Permissions repair

    I've had a problem with adobe bridge 3 where it crashes upon choosing a certain directory. i've checked the console logs and it showed something related to dictionary missing a " ; " i've googled online, and there were an advice to very permissions.

  • Is My iPhone 5 unlocked?

    I have an iPhone 5 / 16GB that I purchased from BestBuy about 2 years ago as part of a winter sale. I renewed my contract with Verizon at the same time. I am planning on using it in the Caribbean. I stop by the Verizon store to ask if they have a spe

  • My new upgrade macbook iTunes not responding

    I have been upgrade my Macbook Pro, to OS X Yosemite lately. And when I try to connect my iPhone 5s with an iTunes, it takes longer than usual, and i've sent report to apple with the problem. Could anyone help me with this problem, please, Thank You.

  • How to Import the RFC (Custom RFC  made ) which is available in SAP systems

    I have to use a custom RFC which is made by an abap developer in my XI scenario. I dont see any "Imported objects" tab  under my scenario in IR . I can only see  "Imported objects"  under SAP basis 6.40 . When i right click the link "Import of SAP ob