SAPScript  - Fields Question

Hi all expert,
I'm relatively new to sapscript. This is what i wish to do..
Let's say i want to print the vendor address with the addrnumber,
then take the address from ADRC using the same addrnumber.
From the spec, these are the fields which are required:
Name1, Name2, Name3, Name4, str_suppl1, str_suppl2, street, str_suppl3 and tel_number
Expected:
Kraft Foods Limited
Rm 1606 16/F
Str_suppl2
street
str_suppl3
tel_number
my question is...how to ignore those empty fields.. what if one of the fields required is not filled..will sapscript leave a gap to something like this if str_suppl2 is not field
Kraft Foods limit
Rm 1606 16/F
street
str_suppl3
tel_number
is there anyway to ignore the gap so that it will be printed to the next line instead of leaving a line..
thanks all comments are appreciated.

Hi Yew Wing,
The best option is to use the
/: ADDRESS
          /:    ADDRESSNUMBER &ADRC-ADRNR&
          /: ENDADDRESS
This way the system will automatically format the address for you. You need not worry about the blank space and other formatiing options. You need not select all the other fields as well. Just pass the Address number and rest the command ADDRES and ENDADDRESS will do automatically.
Cheers
VJ

Similar Messages

  • New Calculated field question. Complicated I think.

    I have managed to create this table from a MySQL database: http://ppbm5.com/DB-PPBM5.php
    The field 'Total' is a calculated field using this SQL query:
    $query_Recordset1  = 'SELECT *, `Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE  Off`) As Total, `CPU`*`Cores` As Phys_Cores FROM `Personal_data` WHERE 1  ORDER BY (`Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`)),  `Date & Time` ASC';
    So far, so good, but as you may have  noticed, there is a next field called 'Rel. Perf.' which only contains  blanks. And that is where my problems start.
    The table is sorted by 'Total' and the first record shows these figures and field names that are relevant for my question:
    Fields: 'Total'  'Disk I/O'  'MPEG2-DVD'   'H.264-BR'   'MPE On'   'MPE Off'
    Values:  131,        67,              21,                  37,              6,              64
    In addition, I use four 'weight' figures, let's say these are 0.27 , 0.30 ,  0.20 and 0.23 denoted as W1, W2, W3, W4.
    First step is to calculate four temp values, using a formula like this resulting in T1, T2, T3 and T4:
    T1 = W1 x  Total /Disk I/O; T2 =  W2 x Total/MPEG2-DVD ; T3 = W3 x Total/H.264-BR ; T4 = W4 x Total/(IFNULL(MPE On, MPE Off)
    Note that this only applies to the top record and here the SUM(T1, T2, T3, T4) results in 131, equal to the Total.
    The result of 100 x SUM(T1, T2, T3, T4)/ Total = 100 should be the 'Rel.Perf.' result for the top record.
    Now  is gets difficult. Let me call the records R1, R2, R3, ..., Rx. Now, in  the previous step we have established that the figure 100 should into  R1.
    For R2 the result of the 'Rel.Perf.' is 100 x SUM(T1 x Disk  I/O(2), T2 x MPEG2-DVD(2), T3 x (H.264-BR(2), T4 x (IFNULL(MPE on, MPE  Off)))/ Total(2)
    For R3 the result of the 'Rel.Perf.' is 100 x  SUM(T1 x Disk I/O(3), T2 x MPEG2-DVD(3), T3 x (H.264-BR(3), T4 x  (IFNULL(MPE on, MPE Off)))/ Total(3)
    etcetera for all the rest of the records in the table.
    A  complicating factor is that the reference point of the top machine  should remain fixed at 100, but when doing queries, the top machine may  not be in the query results, but all the query results for the Rel.Perf.  should be derived from these scores. Life would be infinitely easier if  one would be certain that the top machine is fixed, but that is not the  case.
    Sorry to make this such a long and complicated post, but  for those who have struggled through this long message, if you have any  suggestions on how to make this work, I would appreciate it.
    Thanks in advance.
    Harm, while non is intended.
    PS. I have been trying to generate a SQL query, using the following code:
    $query_Recordset1 = 'SELECT *, FORMAT(`Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`),0) As Total, FORMAT((54.661*`Disk I/O`+161.25*`MPEG2-DVD`+71.66666*`H264-BR`+645*IFNULL(`MPE On`,`MPE Off`))/129,1) As RPI,`CPU`*`Cores` As Phys_Cores FROM `Personal_data` WHERE 1 ORDER BY 54.661*`Disk I/O`+161.25*`MPEG2-DVD`+71.66666*`H264-BR`+645*IFNULL(`MPE On`,`MPE Off`), `Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`) ASC';
    For static work it is OK, but not when a new top performer submits his data.

    Hi William,
    Per my understanding that you want to count the number of the value in the field wait which is smaller then 15, right?
    I have tested on my local environment and that you can add the calculated field (Count) using the expression as below:
    =IIF(Fields!wait.Value<15,1,0)
    Insert an outside group row and then get the total count by using below expression:
    =SUM(Fields!Count.Value)
    Preview you will get the result like below:
    If your problem stil exists, please try to provide some sample data and the exprect count result you want.
    Any problem, please feel free to ask.
    Regards
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Text field questions: 1. Scrolling 2. Multiple Lines

    Hello,
    I am creating a form with Adobe LiveCycle Designer 7.
    I have two questions:
    1. When I have a text field, and I enter the text in the PDF view, it will keep going until I stop. This causes the text field to become a scroll box. How do I stop that? I want the text to stop when there is no more room left. I understand there is a length limit, but that mean I have to count the number of characters, and also estimate as to what amount off room each character takes. For example, 'i' takes a lot less room than 'Q' with the default font.
    2. I want my text field too look like this:
    TEXT FIELD: ____________________________________
    How do I do that? I can only get the caption to, when set to left, be in the middle of the field. Also I cannot see the literal 'multiple lines'.
    Thanks a lot!

    I have answer for the first question....all you need to do is copy the following JS code to enter event of each field that you have trouble with.
    var acroSOM = this.somExpression.substr(15, this.somExpression.length - 1);
    var acroField = event.target.getField(acroSOM);
    acroField.doNotScroll = true;
    I doubt there is an answer other than NO (in LC 7) for your second question.
    Good luck,
    SekharN

  • Search field question

    I am brand new to this and had a question about search fields. I noticed that when I create an application the pages created during this initial process will load a search feature into every 'form on a table with report' by default. Yet if I create those same pages after the initial application creation process the search function is missing.
    I assume that this is by design. Am I missing a step in the setup of my pages that would include this search? Or do I need to manually add it to each new page? If I do need to manually add it what is the easiest way to do it?
    Thanks in advance

    If you create pages after the initial creation you need to add the search functionality yourself. That's not that hard:
    1) add search item
    2) change your report query to include a where clause for the search
    3) add a branch to your page (same page)
    4) add a button that does the submit of your page
    Hope that helps,
    Dimitri

  • Barcode or field question

    Hi, just a question, is it possible to insert a barcode or any field into an image using oracle document capture ? what oracle application can i use for this if is not possible....??? thanks...

    ODC is able to <b>read</b> barcodes. If you want to mark scanned sheets (e.g to prevent duplicate readings or skipping a page), you will need a scanner that is capable to print the barcode to the page prior to reading it. If you want just to add an arbitrary text to an image/document, you had better use a DTP application.
    From Oracle stack, you could use PDF Watermarking (a feature of UCM) or AutoVue, which is capable of marking independently nearly any kind of electronic resource.
    Pls. provide more details what you are trying to achieve.

  • Scripting and metadata field question

    I'm trying to set up a subscription response, that is triggered on a check box which adds all of a FCP project's element's Master Assests to it's member productions. I.E. FCP project "A" which contains elements 1,2&3 and resides in Production "Z", will have the master assets 1,2&3 added to production Z when metadata field "Add Assests" is checked.
    My questions are these:
    1) How do I create a metadata field with just a check box (this a very basic questions, but so far I've only been able to get a "TRUE/FALSE" boolean, which works, but isn't as nice as a check box.
    2) My approach to accomplishing this is a bit more convoluted than I think is necessary, it is thus:
    -Use subscription to write XML.
    -get AssetID for Project from XML
    -Use fcsvr_client listparentlinks /Asset/ID(from above) | grep out the element ids
    -use fcsvr_client listchildlinks /element/ID(from above) --linktype 12 | grep out the Asset ID for each of the elements listed in step 3
    -use fcsvr_client listchildlinks /Asset/ID(of origional FCP project) --linktype 1 | grep put the project ID for each of the member projects
    -use fcsvr_client make_link --linktype 1 /project/(ID from above) /asset/(each of the master assets for each element in FCP project)
    Is this the best approach? Can I add multile assests in one command on the last one? Has anyone already scripted this? Am I missing some automated way to do this in FCSvr already.
    Any help would be appreciated.
    Thanks.

    As to the question of if anyone has scripted this already, I have created a script which pulls all of the element metadata and places it in the associated assets of a Final Cut Pro project. You can check out the video that shows this in detail on the MacHarmony website. To be able to add the assets to a production would be a fairly easy step. The way you are going about it sounds like it should work just fine. We actually go direct to the postgres to improve performance and simplify the creation of tasks such as this, but the WriteXMLs should give you what you need as well.
    -- Jason
    Jason Perr
    MacHarmony

  • Address Book - Birthday Field question

    I was trying to make an entry on the birthday field in one of my contacts. The field does not give me an option to change the year of birth. It defaults to 2000.
    The other question is how can we set up alerts, so that we can maybe send out a card in advance? Thanks!
    Is there a way to fix this?
    imac user

    With the Address card in Edit mode you should be able to click the year field and after it highlights blue, change it to the year you need.
    According to Address book Help, in the Address Book Help Menu;
    You can keep track of contacts’ birthdays by creating a birthday calendar that automatically includes all the birthdays in your address book.
    1. In Address Book, make sure you’ve entered the birthdate for each contact whose birthday you want to track.
    2. In iCal, choose iCal > Preferences.
    3. In the General pane, select the “Show Birthdays calendar” checkbox.
    Birthdays in your address book are automatically added to the Birthdays calendar in iCal. When you add or remove birthday information in Address Book, the Birthdays calendar is also updated. You can’t make changes to the Birthdays calendar in iCal; to change it, you must edit the information in Address Book.
    You can check in iCal Help for info on setting alerts.

  • Expanding text field question?

    Is it possible to have a text field push all other fields below it down the page as a user fills the box with text content?
    ie. a text area with a logo graphic below it which always is positioned exactly the same distance between it and the content.
    Thanks...

    You can use a dynamic form created by LiveCycle Designer for this.

  • AP invoice interface - payment block field question

    Hi,
    Peoplesoft is our main system for finance. We are using SAP for logistics applications. I am building a interface to send AP invoice details from SAP to peoplesoft on a daily basis. This interface needs to pick up only those invoice that are free for payment i.e. bseg-zlspr (payment block) field is blank. For example, if an invoice is in invoice verification process, it should not be sent. Till this point, it is easy to get the details of these invoices.
    Once the invoice verification is done, bseg-zlspr field will become blank and needs to be picked up by interface. But the issue is how to select these invoices. Since the interface will run daily, I can select for invoices that are created on that day or changed on that day. But the issue, when the value of bseg-zlspr field is changed from blocked to free for payment, none of the date field value changes on either bkpf or bseg tables.
    Any ideas how to handle this???

    hi,
    use change document analysis like tcode FB04
    -> try fm CHANGEDOCUMENT_READ_HEADERS
    A.
    Message was edited by:
            Andreas Mann

  • Table Key field Question

    Hi All,
              According to the requirement I have to make the CURR type field as the key field in one of the table. But dureing activation it's throwing the below warning :
    Key field <Field name> has num. type CURR: Buffering not possible, Transport restricted
    Message no. DT607
    Diagnosis
    A numeric type was used for a key field. A table of this sort cannot be buffered.
    When buffering, the table records for numeric values cannot be stored in plain text. Therefore, no entries are found when buffered numerical values are compared in the WHERE condition, although the table can contain entries satisfying the compare criterion.
    The contents of the table cannot be transported if you specify the full key. You can only tranport table contents specified with a character field, up to the first occurrence of a numeric key field.
    Procedure
    You can enter "no buffering" as an attribute of the technical settings and then repeat the activation process. The table is not buffered.
    If you want to buffer the table, you must replace the type in the key field by a character type, i.e. that you must modify the table.
    If you want to transport the contents of a table, you can only do so for records specified by a character key, up to the first occurrence of a numeric field.
    Is this will be a problem when we transport the entries of the table from DEV to QA ???
    If yes how we can solve this problem??
    Thanks for your help in advance.
    Thanks,
    Greetson

    you cannot transport entries with a transport request (TABU)
    but it should be no problem to fill table in another system with your own export-/import program per file-download/upload or per RFC.
    hope that helps
    Andreas

  • Current Date Field question

    Hello
    I'm a novice user of LiveCycle and I'm trying to see if there's a solution for this issue we've come across.
    We've used LiveCycle to redesign human resource/payroll forms in our organization. One of the items we use is the current date field, which automatically populates to today's date once opened. When users complete forms, we encourage them to save an electronic copy of the form to their own drive in case they need to retrieve it at a later date. The problem here is that the current date field will not stay static once filled out and saved.
    For example, if a dept completes a form on 12/1/10, saves it, but then needs to retrieve it later for some reason, we need the current date field to stay as the date the form was originally filled out (12/1/10). If they retrieve the form later on say 2/15/10, that particular date field will read the new date. Is this possible?
    Thanks for any help!

    Test if the field is null before assigning the current date.
    // form1.page1.currentDate::ready:layout - (FormCalc, client)
    if (this.isNull) then
      $.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY"))
    endif
    Steve

  • Building a Form (Field Question)

    I have my form designed with several numeric fields. Here's what I need to do. NumericField3 is at the top of my form. NumericField11 is at the bottom. I'd like to be able to have anything that is typed into NumericField3 to be automatically populated to NumericField11. I don't need any calcuations or anything, just have the data that is typed into NumericField3 automatically pop down into NumericField11. Is this possible? If so how?

    Hi,
    Rename NumericField11 to NumericField3.
    In the hierarchy view you will see the two objects, NumericField3[0] and NumericField3[1]. Now select one of these, doesn't matter which one, and go to the Object > Binding tab.
    Set the binding to 'global'.
    This way what ever is typed into either field will automatically appear in the other one - no script involved.
    Niall

  • Basic Current Timecode Field question

    I tried to figure this out for quite a while, as it seems so simple and basic. But I am still confused!
    I am working on some teaching clips from a text. In the Viewer, the duration of a clip (I&O not set) is 00:00:06;14
    In the Viewer, the Current Timecode Field (upper left field) is 1:00:32;01.
    Is the Current Timecode the original timecode from the tape? And if so, why would one want that info? Two clips from different tapes could have an identical timecode?
    Thanks,
    Sonny Taylor

    Yes, that is the original source timecode, which can be very beneficial in a multitude of ways.
    Tapes can and do have identical timecode...the key to that is giving them 'REEL' names when capturing. That is what FCP uses to designate a source.
    K

  • Read Table with key field - question

    Hi,
    Can you use the same key field more than once?
    For example:
      READ TABLE I_TVKWZ INTO I_TVKWZ_2 WITH KEY WERKS = '1004'
                                                                                    Werks = '1002'.
    I get an error when trying this.
    Is there an alternative?
    Thanks,
    John

    Hi John,
    try this:
    DATA: begin of itab occurs 0,
            werks like mseg-werks,
            i     type i,
          end   of itab.
    itab-werks = '1000'. itab-i = itab-i + 1. append itab.
    itab-werks = '1000'. itab-i = itab-i + 1. append itab.
    itab-werks = '2000'. itab-i = itab-i + 1. append itab.
    itab-werks = '3000'. itab-i = itab-i + 1. append itab.
    itab-werks = '5000'. itab-i = itab-i + 1. append itab.
    itab-werks = '5000'. itab-i = itab-i + 1. append itab.
    itab-werks = '7000'. itab-i = itab-i + 1. append itab.
    itab-werks = '7000'. itab-i = itab-i + 1. append itab.
    itab-werks = '9000'. itab-i = itab-i + 1. append itab.
    itab-werks = '9000'. itab-i = itab-i + 1. append itab.
    itab-werks = '9000'. itab-i = itab-i + 1. append itab.
    loop at itab where werks = '1000' or werks = '9000'.
    write: / itab-werks, itab-i.
    endloop.
    Regards, Dieter

  • Flex fields question

    Hi,
    I'm trying to use flex fields in Worklist оn SOA Suite 11.1.1.4 but I cant see protected flex fields on Administration tab under weblogic, only public.
    Is it some new bug on 11.1.1.4 on new "feature"?
    How can i can enable protected flex fields? Is it posible?

    It seems I found solution.
    After extending weblogic domain with Oracle BPM Suite protected flex fields appers and become usable.

Maybe you are looking for