Sapscript, check address,  variable starting vertical position  Solved

Hello all,
On the check that we are creating for Accounts Payable payments, vendors that have all four name fields populated are causing the last line of the address on the check to be too close to the MICR line. 
I want the address to start printing conditionally  at line 55, 56, or 57, depending upon the number of name fields that are populated.  Does anyone have a suggestion on a way to accomplish this?  Currently the address starts printing in line 57.
This is the address command as it currently exists.
ADDRESS PARAGRAPH AS            
  NAME       &REGUH-ZNME1&, &REGUH-ZNME2&, &REGUH-ZNME3&, &REGUH-ZNME4&,
  STREET      &REGUH-ZSTRA&     
  POBOX       &REGUH-ZPFAC& CODE
  POSTCODE    &REGUH-ZPSTL&     
  REGION      &REGUH-ZREGI&     
  CITY        &REGUH-ZORT1&     
  COUNTRY     &REGUH-ZLAND&     
  FROMCOUNTRY &T001-LAND1&      
ENDADDRESS                      
All answers greatly appreciated.
Thanks
Bruce
Solved!
This is how I sold my problem.
1.  Move the address window up two lines.
2.  Add the following code before the address command. This code could possibly print one or two blank lines before the address command is executed.
/:   IF &REGUH-ZNME3& = ' ' AND &REGUH-ZNME4& = '
/:   ELSEIF &REGUH-ZNME4& = ' '                  
/:   ENDIF                                       
Bruce
Message was edited by: Bruce Tjosvold
Message was edited by: Bruce Tjosvold
Message was edited by: Bruce Tjosvold

andre.ramaciotti wrote:And I'm not sure if you should put that & after exec awesome. It works fine here without it.
No & after entries in .xinitrc . You've commented out the awesome entry.

Similar Messages

  • SAPscript printing address from FK03

    Hi everyone
    I haven't dealt with tables and structures yet so please bear with me
    We have a SAPscript that prints checks to our venders which prints the address with only 3 lines.
    When I look at the SAPscript the address is coming from the table REGUH.
    Inside tcode FK03 there are 2 lines for street.  The first field is labeled STREET 2 and the second is
    STREET/HOUSE NUMBER.  Street/House number is printing on the check just fine and I can see that it
    is being pulled into the table REGUH as field ZSTRA problem is I don't see the STREET 2 being pulled into
    table REGUH at all, and if I check inside FK03 all the fields under the STRUCTURE ADDR1_DATA.
    So I'm not sure where REGUH is getting its data or how to get my extra street information onto the SAPscript
    Thanks in advance

    I'm still a bit confused by your approach since it seems that you're referring to the ADDRESS command but the only thing you show in your example is a direct field output.
    As far as the 'Pay to...' line goes, though I'm not familiar with your specific design, since it seems that you're working with blank check stock, let me recommend that you separate the 'Pay to' text window from the actual payee information with the name & address.  In your payee address window, you would use the address command similar to the following:
    /:           ADDRESS PARAGRAPH L8
    /:             NAME        &REGUD-ZNM1S&, &REGUH-ZNME2&, &REGUH-ZNME3&, &REGUH-ZNME4&
    /:             STREET      &REGUH-ZSTRA& &WA_ADRC-STR_SUPPL1&
    /:             POBOX       &REGUH-ZPFAC& CODE &REGUH-ZPST2&
    /:             POSTCODE    &REGUH-ZPSTL&
    /:             REGION      &REGUH-ZREGI&
    /:             CITY        &REGUH-ZORT1&, &REGUH-ZORT2&
    /:             COUNTRY     &REGUH-ZLAND&
    /:             FROMCOUNTRY &T001-LAND1&
    /:           ENDADDRESS
    Now I realize that your case is a bit different in that you have 2 streets but won't want them to appear on the same line, so you may want to play with moving the first street value up to the name line.  The values wrap as well if too long.
    You can use additional specifications such as LINES to control the output.  You'll want to refer to the help files.

  • I can't find anything about how to properly manage the tablet's layout in horizontal or in vertical position.

    I can't find anything about how to properly manage the tablet's layout in horizontal or in vertical position.
    If I consult my website in vertical position, it's ok but, If I turn my tablet, all the hyperlinks and all general visualization are wrong.
    How I can properly handle both views?
    PS: I'm sorry for my bad english

    Could you share the site URL so we may check at our end? Also could you share some screenshots explaining the 'wrong hyperlinks and visualization'.
    Thanks,
    Vikas

  • My ipad 2 screen is frozen / locked in vertical position how do I fix that?

    My ipad 2 screen is locked into vertical position and I have tried shutting it off and checking the lock rotation nothing so far has worked. It does have a lock at the top of screen. Help!!!

    Double tap the home button and swipe all the way the right in the task bar at the bottom - see if the lock icon is in the far left corner of the task bar. If so - tap it to unlock the rotation.
    Or check the side side switch above the volume control on the right side of the iPad.
    You might want to read this as well.
    http://support.apple.com/kb/HT4085
    If those don't work - try a reset.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Checking several variables in an If Statement?

    Hello!
    I've just been searching the internet for some code to check several variables in one big If Statement, I just wanted to double check here whether the code I found is correct!
    Is it right to type it like this?
    if ((vehicle == "car") && (terrain == "dryroad") && (speed == "20") && (state == "sober")) {
                        gotoAndPlay("cardryroad20sober");
    } else if (( And so on....

    Yes, although you do not need to use the inner parentheses (no problem having them though).  Inner parentheses can be used when you want to group multiple conditions to be evaluated as a combination in comparison to some other combination or criteria...
    if(A && B) || C)...
    In that example both A and B have to evaluate true for their combination to evaluate true, whereas C by itself can evaluate true and get the same end result.

  • How to adjust Start/Stop position of a song on the iPhone (not iTunes)?

    Hello all,
    Before I caught my flight today, I decided to make a ringtone of my new favourite song. Obviously one of the steps in doing so involves selecting a specific start and stop position within iTunes be fore creating the ringtone.
    So I got on the plane and realised that I didn't remove the start/stop positions on the song after creating the ringtone. Now i'm stuck with only a 40s interval being able to be played!
    Please tell me there is a way to change the start/stop position of the song within the actual iPhone as I won't have access to my iTunes library for quite some time!
    Any help appreciated.
    Regards
    iPhone 3G2 32bg, 3.1.2

    No

  • B2B-51507 :The data starting at position 0 is not recognized as a valid dat

    Hi All,
    I am trying to work with Delimited Flat File in 11.1.13 version
    B2B has to translate Flat into XML data for further operations
    Sample looks like:
    F01,,RM30207,Subinventory Transfer,KITCHEN1,100,LB,KETTLE1-HS,20-SEP-2011
    It is a delimited data file.
    Steps I am following:
    1. Create Delimited Flat file ECS in Oracle B2B Document Editor (starting with a blank template)
    2. Create XSD for the ECS
    3. COnfigure the generated ECS and XSD into Oracle B2B
    4. Create Trading partner and agreements
    I am facing with below error when I enable translation
    B2B-51507 :The data starting at position 0 is not recognized as a valid data transmission.
    No errors when translation is disabled
    Thanks,
    Deepti

    Hi Deepti,
    For inbound scenario, the parser schema should be created and has to be added inside the XERegistry.xml ($SOA_HOME/soa/thirdparty/edifecs/XEngine/config/)
    e.g :
    <Item Name="SchemaFile">${XERoot}/config/schema/csv_ParserSchema.ecs</Item>
    This can be created using the document editor. This parserschema need to be created for the ecs file that is used for translation.
    Regards,
    Dheeraj
    .

  • I created a PDF of my book in Preview and encrypted it. When opened in Adobe Reader, it is rotated to the vertical position rather than the original landscape position. How do I fix this in Preview? I don't want my buyers to have to hassle with rotating.

    I created a PDF of my book in Preview and encrypted it. When opened in Adobe Reader, it is rotated to the vertical position rather than the original landscape position. How do I fix this in Preview? I don’t want to hassle my buyers with rotating. There was no option in Preview to account for this automatic and unwanted rotation.

    Then you rotate it and SAVE or SAVE AS and it will remain that way.

  • HT204158 Can the Smart Cover be used to support the ipad in the vertical position?

    Can the Smart Cover be used to support the ipad in the upright vertical position?

    It can, but its not very secure, and only in a completely vertical position i.e 90 degrees.

  • Make positive vertical position change = UP when moving object? CS6

    When moving an object, entering a positive value for vertical position sends objects DOWN. How do I reverse this such that entering a positive value will move objects UP?Thanks.

    What about the suggestion in the first post in this thread, Reasoner?
    http://forums.adobe.com/message/3859580#3859580?tstart=30#3859580
    It is more work than using a script (was linked to in post #4 in the other thread).
    We may have to ask Carlos to make a new script that works in CS6 (and in CS7 and CS8 and so on).
    Carlos, what say you?

  • My MacBook Pro top cover flips open partially when kept in a vertical position.

    The top cover of my MBP; brought in Sept 2012, flips open when kept in a verticla position. Like when you place it in a laptop bag. The local  Apple service center was not of much help. Have attached a snap of the MBP in the vertical position showing the top cover flip open. Can someone be of some help

    You should also ask this in the MacBook Pro forum. This is the forum for the 13” white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • User exit to check user variable values

    Hi All,
    We have a user exit variable based on CALYEAR (to have the  last year as default value).
    Therefor, the user could choose another value (year)  but not values later than 2 last years.
    For instance, in 2010, the default value is 2010, and the user could choose 2009 or both 2010 and 2009.
    How can we check the user variable entries, and how can we prevent the user to do this.
    In other words, could you please give us the step number when we have put this checking (1, 2 or 3), and
    If itu2019s possible the ABAP programme to do this.
    Thank you in advance.
    Radjech.

    hi Radjech
    you can reach that with the i_step = 3.
    The step 3 is used for validation. This step checks the variable value keyed in by the user to see if you allow him to proceed the query.
    Here is an example.
    This code it to be included after the i_step = 1 where you give the default value of the year.
    Anyway the I_step = 3 is called only once.
    The case endcase is declared for the whole coding in the user exit. So for example you have
    Case i_vnam
    if i_step = 1.
    your treatment for default value.
    Endif.
    Then you give in the below coding.
    if i_step = 3.
    read table i_var_range into s_var_range with key vnam = zvar_calyear. " here I assume you have defined your simple and unique variable with the same technical name.
    if sy-subrc = 0.
    l_queriedyear = l_s_var_range-low(4) " here you retrieve the value of the variable in a local variable.
    endif.
    l_currrentyear =sy-datum(4). " here you take the current date and put it in a variable.
    if l_currrentyear - l_queriedyear > 2. " here you make the comparison of the current system date and the year of the variable. if it is > to 2 then raise the validation
    raise wrong_value. " here you can use  a raise wrong value
    Endif.
    Endif.
    Or you can combine a message with a raise like follows
    therefore example should be
    if i_step = 3.
    read table i_t_var_range into l_s_var_range with key vnam = zvar_calyear.
    if sy-subrc = 0.
    l_queriedyear = l_s_var_range-low(4)
    endif.
    l_currrentyear =sy-datum(4).
    if l_currrentyear - l_queriedyear > 2.
    Call functinn 'RRMS_MESSAGE_HANDLING'
    Exporting
    I_class = 'RSBBS'
    I_TYPE = 'I'
    I_number = '000'
    I_MSGV1 = 'Year value to big'.
    Raise wrong_value.
    Endif.
    Endif.
    eNDCASE.
    Boujema

  • Why does my iPad 1 not let me use the touch screen capabilities when it is in horizontal position, all is fine in vertical position

    my ipad os 5.1.1  first ipad ever 64 gb will not let me use any function when turned horizontally  it works fine when in vertical position  any suggestions?

    These are the instructions for that specific code.
    Error 40265xxxx: Errors of the 40265xxxx range generally occur during the restore-from-a-backup  phase, after  iOS has been installed on the device. Restoring the  device and setting up as new can resolve the issue. Before restoring as  new, take steps to preserve the previous backups created by iTunes, such  as copying the contents of the Backup directory onto the desktop. See iPhone and iPod touch:  About backups to learn where backups are stored for your  computer's operating system and additional precautionary notes regarding setting up as new. The  backups created by iTunes store data such as your SMS, Favorites,  Bookmarks, and other app data.
    Taken from this support site.
    http://support.apple.com/kb/TS3694#error40265
    I think you are going to have to restore as new. Deleting that MobileSync backup folder may have caused the problem. When you delete the backup from iTunes like I was asking about, you are only deleting one particular backup. If you have multiple iDevices - all of the backups would be in that one folder - I think that's how it works.
    Read the article - even though the heart and soul of it has been pasted into this link already.

  • H323-remote-address in START radius packet

    Hi,
    I do have Cisco 3945 running as ip-to-ip sip device (IOS 15.1)
    I would like to have all sip calls accounted in remote billingg server i already bought.
    Here is a snippet from my config:
    aaa new-model
    aaa group server radius biling
    server 77.77.77.77 auth-port 1812 acct-port 1813
    aaa accounting send stop-record authentication failure
    aaa accounting connection h323 start-stop group biling
    voice class aaa 1
    accounting template mybiling
    gw-accounting aaa
    radius-server host 77.77.77.77auth-port 1812 acct-port 1813 key 7 093126371BA2312
    radius-server vsa send accounting
    radius-server vsa send authentication
    call accounting-template voice mybiling flash:mybiling.cdr
    dial-peer voice 1 voip
    voice-class aaa 1
    Radius START and STOP are produced by CUBE, but unfortunately START message hasn't got h323-remote-address.
    Aforementioned vsa is incorporated in STOP message.
    What is more, of course h323-remote-address is included in mybiling.cdr file
    Is there any way to force Cisco to send h323-remote-address in START message?
    This is important because billing system have to set concurrent call limitation & make active calls visible.
    Thanks in advance,
    Maciej

    Hi ,
    Try using:
    aaa accounting delay-start
    Regards,
    ~JG
    Do rate helpful posts

  • Vertical Position of Bullets

    Hi --
    Is there anyway to control the vertical positioning of bullet
    images in a
    <ul>? The reason I ask is that on this page:
    http://www.alterra-group.com/alterra_group_services.htm
    the bullet image
    displays next to the first line of text in each <li> in
    FF but in the middle
    of the overall <li> in IE. My CSS for this was reused
    pretty much vertatim
    from this page (
    http://www.bloomgroup.com/insights.htm)
    which doesn't have
    the problem.
    Does anyone know how I can get the bullet images to display
    next to the
    first line of each <li>?
    Thanks,
    John

    .oO(Tarvardian)
    >Is there anyway to control the vertical positioning of
    bullet images in a
    ><ul>? The reason I ask is that on this page:
    >
    http://www.alterra-group.com/alterra_group_services.htm
    the bullet image
    >displays next to the first line of text in each
    <li> in FF but in the middle
    >of the overall <li> in IE. My CSS for this was
    reused pretty much vertatim
    >from this page (
    http://www.bloomgroup.com/insights.htm)
    which doesn't have
    >the problem.
    >
    >Does anyone know how I can get the bullet images to
    display next to the
    >first line of each <li>?
    You could try it with a background image instead of
    'list-style-image'.
    Then you can place it somewhere near the left top corner of
    the list
    item.
    Micha

Maybe you are looking for

  • IDoc scenario

    Hi all,   I have done file to idoc scenario. in that No error in sxmb_moni IN SAP system( we05) EDI: Partner profile inbound not available Status 56 Message from Control records is-> patner Recipient Information (EMPTY) IDS47800 LS Sender Information

  • How to get the user exits Enhancement no.

    Hi All, How to get the following userexit  Enhancement no in SMOD transaction code. User Exit: J_1i7_userexit_exinv_addl_data Please help.

  • Managing privileges in BI Administration.

    Friends, I created some application roles, now i need to assign them all the privileges which "BI Consumer role" and "BI Author role" have through "Administration" -> "Manage Privileges". so my concern is do i need to assign all the privileges one by

  • Moving AW to a new Intel MacBook

    Hello I say, I say, I say, I've just helped my mother-in-law buy a new MacBook. Sadly, as yet there's no punch-line. In the Apple Store we were able to read her existing Appleworks 6 documents on a new intel machine. When I got back to her place I co

  • MDG-F 7.0 GL, cost center, profit center change history in ECC

    I am working in an MDG-F 7.0 workshop and am primarily working on cost center, profit center and GL account. I have come to realize that all field attribute changes made to cost center and profit center that are initiated from MDG-F won't be updated