DOUBT IN A BOX

HI
am doing a script in which i need to put a smaal box at the right hand side corner ..now my doubt is i need to print the document number and the date inside the box which i need to retrive from the respective tables and also one more doubt how to have blank spaces in betwenn...like on a line am printing the document text
the next line there shouldnt be anything it should be a gap and after i want to print sometingg.please help
vijay

Hi Vijay,
Setting default parameters for a box:
You can use the POSITION and SIZE commands to set default parmeters for a box.
Instead of: 
/: BOX XPOS '11.21' MM  YPOS '5.31' MM  HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW
You can write:
/: POSITION XORIGIN '11.21' YORIGIN '5.31' MM
/: SIZE HEIGHT '2' MM WIDTH '76' MM
/: BOX  FRAME 10 TW INTENSITY 10
This can be usefull if you gave several boxes that share the same parameters.
If you want to set the position realtively to the window use POSITION WINDOW
to set the position to the top/left start of the window. Then use POSITION 
to set the current position relatively to the start of the Window. 
Note that you uses "+" or "-" in the ORIGIN position to the set the position relatively.
/: POSITION WINDOW
/: POSITION XORIGIN '5' MM  YORIGIN '10' MM
the position is now 5 MM from the left and 10 MM from the top of the window
NOTE: After using the position command you can move the current position
realtively to the last used position
/: POSITION XORIGIN '10' MM  YORIGIN '20' MM
Now the position will be X = 15 and Y = 30
Drawing a line. You can draw a line by setting the Height or Weidth to 0
and add a frane. E.g. a horizontal line:
/: SIZE HEIGHT '0' MM WIDTH '200' MM
/: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.81' MM INTENSITY 100
SAP Printer commands in SAPScripts
The command line in the editor must be as follows:
/:  PRINT-CONTROL xxxxx
or
/:  PRINT-CONTROL 'xxxxx'
where xxxxx stands for the five-character name of the print control.
Example:
/:  PRINT-CONTROL ZM100
The complete printer command normally resides in the print control.
If characters belonging to the print command follow after the print control in the text (only useful for the HPL2 printer driver for PCL-5 printers), the text line following after the PRINT-CONTROL command should begin with an equals sign (=) in the format column.
Example:
/:  PRINT-CONTROL SESCP = *c5G
If you do not use the equals sign, a space character is inserted between the print control SESCP and the character *c5G.
Different font on the same line
You can have different font on the same line by defining a character format.
For example B for bold text and U for Underline. 
In your SAPScript apply like this : 
<U>Underline Text</> <B>Bold Text</>
Print Footer notes only on the last page
Command to used in your sapscripts :-
/: IF &NEXTPAGE& EQ 0 
      whatever footer you want. 
/: ENDIF 
SAPscripts How to calculate Totals and Subtotals
I have some doubs in BDC and SMART FORMS.  I want to change the material number using the transaction code MM02 through BDC.
In scripts and smartforms how to calculate totals and subtotals?
To calculate totals and sub totals in sap scripts you have to use subroutines.
Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
/: DEFINE &TOT_PRICE&
/: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
Then write the variable where ever you want it to be printed (mostly it will be in footer window)
Then create subroutine pool program and you have to write the code.
FORM F_GET_PRICE tables int_cond structure itcsy
                                    outt_cond structure itcsy. data : value type kbert.
statics   value1 type kbert.
Read int_cond table index 1.
value = int_cond-value.
value1 = value1 + value.
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
I have given a rough outline, please be aware of the variable conversions as Int_cond-value and outt_cond-value are characters.
Rewards some points,
Rgds,
P.Nag

Similar Messages

  • Doubts in LIST box

    Hi All.
    I have to do the validation for selection screen input screen like input1,input2,input3 and input4.All are list box . Based on input1 have to display content in list box of input2 .so while capturing value from input1 , am getting * instead of 10 (1 means first value in search help,2 means second value in search help  and 10 means 10th record of list box).
    How to resolve this issue?
    Please help me
    Regards.
    jay

    Try FM : DYNP_VALUES_READ

  • Combo box ( i can't solved. help me)

    hi, i have doubt in combo box
    <select name="branch">
    <option>chennai</option>
    <option>bangalore</option>
    <option>delhi</option>
    <option>mumbai</option>
    </select>
    In the above code i didn't use <option value> but i give the values between the <option>xxxx</option>tags.
    Now i want to retreive the values between the <option></option> tags.
    is it possible?.if yes how?. please send me code. it would be very helpful to me.

    linta mam..try this..
    I hope u know how to write js functions..
    write a function for onChange event of ur select ..
    inside the function u can give
    var index=document.getElementById("branch").selectedIndex;
    alert(document.getElementById("branch").options[index].text)

  • About LOCK BOX account

    Hi experts,
    I have a doubt on lock box account.
    1.  when we open lock box account in bank it is used for payment collection from customers is it correct.
    2. Then how that payment information sent to R/3 systems, where we get that bank files & which area it is actually storage.
    3. How we can download that files is there any T.code for that downloading.
    4. what is different between BAI & BAI2,  EDI 820 & EDI823.
    Thanks & Regards,
    vinod.
    Moderator: Multuiple questions are not allowed in one thread. Also, please avoid asking basic questions

    Dear
    Please check the thread Item category 04000 not allowed
    Regards

  • Does the retail / upgrade boxed set contain the update?

    basically that's what I need to know
    I'm getting together another coupled of machines and need to know
    if the updated version will be shipped or will I still need to get
    the patch after the fact?

    >does the retail / upgrade boxed set contain the update?
    I very much doubt it - the boxed sets are always done in a large run, and a repress for an update is unlikely. Anyway, it's easy to tell; if you install the boxed product and it says 3.0.1 then it will be. But as I said, I rather doubt it...

  • Regarding Dialog Boxes

    hi, I am a novice in Labview. I have a doubt regarding dialog boxes. can i make a VI as a dialog without running the VI.
    Thanks in Advance
    Regards
    Soundarya

    Soundarya wrote:
    hi, I am a novice in Labview. I have a doubt regarding dialog boxes. can i make a VI as a dialog without running the VI.
    Thanks in Advance
    Regards
    Soundarya
    Hi Soundarya,
    what do you mean? You can make a vi and use it as a dialog, but why should the vi not run?
    Mike
    Message Edited by MikeS81 on 07-07-2009 09:03 AM

  • Regarding Dialog Box

    hi, This is Akhila.
    I am a novice in Laview. I have a small doubt regarding Dialog Boxes
    Can I add a dialog box in the project same like adding a VI
                                       Thanks in Advance
    Regards,
    Akhila

    You can create a VI that works like a dialog box. See the shipping examples for some examples on dialog boxes. You can also convert an Express VI dialog to a regular VI and save it as your own. See the Help on converting Express VIs to regular VIs.

  • Mail / Software Update / Web Won't Start After Time Machine Resurrect

    Hi there.
    Ran through some serious permissions issues trying to mess with the ACLs, as AFS wasn't working. So it shoved an ACL into some recursive folders, and it went all nasty, had to force restart.
    So I tried to take out the ACL on the drive, then it wouldn't start.
    Took a Time Machine backup from earlier on today, and I'm still getting ACLs. She's starting up, but won't get those services restarted for some reason.
    Are they not on that drive? Time Machine says it rewrites the drive. I'm going to start an install of earlier on in the week, but am I not going to get this fixed? It's taken a long time to get this thing working, so I'm really worried.
    Any ideas as to what I should do? How can I get the ACLs out of there? My custom ACLs are maybe 3 entries, so I could restart back where it was and set them again. It wasn't working anyway.
    Cheers

    BTW, spoke to Apple's peeps, and I had to do the following. Turns out, Time Machine and X Server don't really work to well. Because the /var/spool/ items are live, they can't be copied. Of course I told them that was a very important part of all this. I suggested a daemon to shadow those subdirs. Let's expect that in the future.
    1. Image problem drive on alternative drive on server
    2. Backup Server Admin prefs & Server Admin Settings on client
    3. Backup Open Directory through Server Admin on alternative drive on server
    4. Backup Workgroup Manager on client
    5. Install OS X Server
    6. Use upstream ISP for external DNS, switch to 192.168.1.5 (local server DNS) when server has imported info, restart
    7. Get Server working with all preferences. Client might have to have Internal DNS (192.168.1.5), External DNS. Or, just internal DNS. It's interesting that the previous setup had both DNS' for client setup. I had to try to re-import, specifically, some services, to take their kak. Turn off the service for it to be best-receiving (that isn't a word). Then restart the service, and give it several seconds to fall into place with table creation, DNS checking, etc. Don't be too quick for this to happen.
    8. Instal third party scripting language & MySQL
    Advice: when in doubt, restart the box. Also, save time, image drives at several times. These are < 10 GB for the most part, if you turn off crap like global printer drivers, and localisations, during installation.
    This restart, coupled with my DNS troubleshooting stuff the second time around (apparently the MAJOR problem with this software), saved me hours.
    Cheers

  • Flex with Java - DB data access

    Hello, folks,
    I am developing a Java application and realized that I need
    some advice. My application is simple:
    I have a MSSQL server, tomcat 5.5 ,flex data services.
    In my application , i have two combo boxes.. country, town..
    i have populated the country combobox with the values from
    DB(country table) obtained using the fill(List ListArgs) in
    Assembler Class.
    Now, based on the country selected in have to populate my
    town combobox from (town table)
    How can i populate the town combobox from the DB based on the
    country code?
    Is there any function to pass the selected index and populate
    the town combo box..????
    My code is as below:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" >
    <mx:DataService id="ds" destination="quick-search-country"
    autoCommit="false" autoSyncEnabled="false"/>
    <mx:DataService id="tds" destination="quick-search-town"
    autoCommit="false" autoSyncEnabled="false"/>
    <mx:ArrayCollection id="cntry_list"/>
    <mx:ArrayCollection id="town_list"/>
    mx:Panel layout="absolute" backgroundColor="#c6daf5"
    verticalCenter="0" horizontalCenter="0">
    <mx:Form id="SearchForm">
    <mx:TabNavigator >
    <mx:Canvas label="Hotel" width="339" height="234"
    backgroundColor="#ffffff">
    <mx:Label x="10" y="91" text="Country :" alpha="0.12"
    />
    <mx:ComboBox x="93" y="89" fontSize="10" id="Country"
    dataProvider="{cntry_list}"
    labelField="countryName"
    creationComplete="ds.fill(cntry_list)"
    change="tds.getItem(Country.selectedItem)" prompt="United
    Kingdom" >
    </mx:ComboBox>
    <mx:Label x="10" y="126" text="Town / City :"
    fontFamily="Georgia" alpha="0.12"/>
    <mx:ComboBox id="town" x="94" y="124" fontSize="10"
    dataProvider="{town_list}"
    labelField="townName" prompt="London WC1" >
    </mx:ComboBox>
    </mx:Canvas>
    </mx:TabNavigator>
    </mx:Form>
    </mx:Panel>
    </mx:Application>
    this is my main.mxml . I have CountryAssembler to fill the
    country combo and a DAO class . Have a Town assembler..
    Please advice me on how to populate the town combo based on
    country selected from the DB...
    I am really stuck up... and also dont have any documentation
    on Flex data services with Java support..
    please give me some suggestions on this.
    Thanks in Advance,
    Ambili

    Hi Mete,
    Thanks for ur reply , Mete. Your reply helped me a lot. Am
    using FDS 2.0.
    I have a doubt in combo box area itself.
    I have two tables by name country_list and town_list
    country_list consists of identity column , country_name and
    country_code
    town_list has identity column, country_code, town_code and
    town_name
    Normally while we use combobox in jsp, we have key value
    pairs for combo box..
    For eg:- if we have a Country combo , we have the country
    name(United States) as text displayed and its country code (US) as
    key.
    So if i select the United States , i will be returned with
    the value 'US' so that i can use it in query directly as
    Select town_name, town_code from town_list where country_code
    ='US'
    But while using flex , am not able to retieve the
    country_code from country combo. its only returning the text and
    the id.
    Here am forced to write a nested query as follows
    Select town_name, town_code from town_list where country_code
    =( Select country_code from country_list where country_name='United
    States')
    Is there any way to get the country_code as key while i
    select the country from country combo .
    And also how to keep 'United States' as selected during the
    intial load of the page.
    <mx:ArrayCollection id="cntry_list"/>
    <mx:ComboBox x="93" y="89" fontSize="10" id="Country"
    dataProvider="{cntry_list}"
    labelField="countryName"
    creationComplete="ds.fill(cntry_list)"
    prompt="Select Country" />
    please give me some suggestions on this.
    Thanks in Advance,
    Ambili

  • Files or folders created by one user show as read only for others

    We are using Server version 3.2.2, we have a group call production and then we have 9 users plus the administrator account.  All users are assigned to the production group.  We have a single share called customers and the group "production" has read and write permissions for the share and also for all the underlying folders and files.
    Each user logs onto the share with their own username and password.  But, when a user creates a new file or folder on the server within the "customers" share, they are assigned read and write permissions and everyone else is assigned "no access".
    We then go into the folder on the server and assign the group "production" read and write access and life goes on, but the issue is that we should not have to.
    From this description, can anyone tell me what we are doing wrong?

    In the sidebar of the Server.app window, select the icon at the top with the name of the server. Then select the Storage tab in the main window pane.
    Navigate to the folder in question and select it. From the popup menu at the bottom with a gear icon, select
              Edit Permissions...
    Verify that the permissions are what they should be, and make changes if necessary. Then, from the same menu, select
              Propagate Permissions...
    Check all applicable boxes, including Access Control List. If in doubt, check all boxes. Click OK.

  • Function module releated

    Dear All ,
    I have doubt regarding whether ,by default the import and export parameters in function modules are passed by value or by reference . And what is the use of check box which is given to check pass by value .

    Hi
      If i am not mistaking that you might have somewhat confusion in pass by value and pass by reference.
    There are three ways of passing parameters to a subroutine:
    Pass by reference
    Pass by value
    Pass By Value Example->
    report ztx1806.
    2  data: f1 value 'A'.
    3
    4  perform s1 using f1.
    5  write / f1.
    6
    7  form s1 using value(p1).
    8      p1 = 'X'.
    9      write / p1.
    10     endform.
    Pass By Reference=>
    With internal subroutines, there is little difference between passing parameters by reference and accessing global variables from within the subroutine. Both allow you to change the value of a global variable directly.
    Example->
    1  report ztx1804.
    2  data f1 value 'A'.
    3
    4  perform s1 using f1.
    5  write / f1.
    6
    7  form s1 using p1.
    8      p1 = 'X'.
    9      endform.
    So when you r using the import or export paramteters there it is pass by value bcz there you r using the internal table values not the reference of the internal table reference but some cases import and export parameter also pass the value in reference.
    As per your doubt in check box the check box value is passed by value not the reference.There is no specific reason why the check box is pass by value or reference.ITs all done as per the requirements.
    Thanks
    Mrutyunjaya Tripathy

  • What settings see Audigy again after XP SP2 install rollbac

    Help please, Win XP SP PC, Audigy just fine, then install SP2, access denied 50% of the way through, install does a rollback, warning that some things may not work so well, and its lost me my sound :angry:Tried registry fixes progs, Creative diagnostics say hardware not found, but PC is dual boot and under Win2K audigy works fine. No doubt some tick box or entry somewhere corrupted. I have tried reloading the software from the CD back on, tried also uninstalling from CD then reinstalling, tried uninstall from add/rem progs then new install. Have not removed card as working in win2K so not card seating problem.Ghost copied back on the copy I made of my boot dri've prior to messing about with fixes, then tried for a repair from CD. Went into diagnostics and still fail declared, then whilst thats on screen, I was in word and heard paperclip go tink tink, wow...sound back, ran diagnostics and still fail, so its working, and well, and still diagnostics fail. Who cares if its working Do a restore point sensibly.Few hrs later after need for reboot, no sound, so did restore to that restorepoint, but still no sound...oh sod ! Now thats frustrating !?Please help, spent two whole days non stop fixing or trying to.Bloody SP2 :angry: its screwed up a few other things that I have now managed to recover. DBenz

    Hi John-CL,PC tailor made to my own specs, March 2004, Win XP home SP is PC, this was around then and I wanted everything ok for such. The Motherboard is an MSI 875P neo (lovely board great reviews) having come out circa that time, all latest for XP.Audigy 2 ZSDevice Manager also blank after that SP2 install failed, unable to fix that despite many forum postings by others with same problems usually resolved with permissions in registry.A lot of the XP issues seem to end up in there, permissions, admin etc.Don't suppose video card details matter here. HDs are Seagate Barracudas. ATA onto Raid.Hope this hel
    ps.
    Also my Device manager is blank, tried all internet suggestions for others with such, permissions fix etc registry but to no avail.Also installed latest driver.Many thanks for assisting.Desperate here as video editing to do !DBenzMessage Edited by DBenz on 08-27-200703:24 AM
    Message Edited by DBenz on 08-27-20070:0 AM

  • Mavericks Server - Files/Folders disappearing when saving or copying.

    Hello,
    I have a Mac Mini running Mavericks(Server) with a Promise raid attached.
    The users are part of a 'Staff_All' group and said group has RW access to the file server through ACL. A few times now the user has created a folder and upon copying items, saving items or even creating new items in the folder the items will disappear from their view. If I log in to the server itself the items are fully visible, and upon creating a new folder on the server and copying the folder contents into the new folder he can see the items just fine. This doesn't always happen, so the work around for now is have the user create a new folder and recopy the items into the new folder. I have tried connecting as SMB2 and AFP, same results. Nothing looks odd with the permissions.
    Any insight that can be provided would be appreciated.

    In the sidebar of the Server.app window, select the icon at the top with the name of the server. Then select the Storage tab in the main window pane.
    Navigate to the folder in question and select it. From the popup menu at the bottom with a gear icon, select
              Edit Permissions...
    Verify that the permissions are what they should be, and make changes if necessary. Then, from the same menu, select
              Propagate Permissions...
    Check all applicable boxes, including Access Control List. If in doubt, check all boxes. Click OK.

  • An event or a BAPIcalled or not?

    Hi Experts!!
    I have a doubt in check boxes.
    I want to know if I can call a BAPI if a check box is checked on a screen and also can I call the same BAPI if I check one more check box on the same screen?
    Thanking You,
    Hema.

    yes you can..... its just with the if statements you play with...
    if pa_1 = 'X'.
    call bapi.
    endif.
    if pa_2 = 'X'. 
    call bapi.
    endif.

  • File Permissions - Service Only Account

    I am running OS X Server on my Mac Mini (Mavericks) and have set up a Service Only account that is used to access the Mac Mini via VPN.  Evrything is working well on the whole.  However, when I copy files to the Mac Mini directories when a drive is mapped as the VPN user I am unable to access the files as the main Mac Mini account, insufficient file permissions.  What do I have to configured to allow files written to the Mac Mini by the VPN Service access account to be accessed by the main Mac Mini user account.
    Thank you.
    Tom

    In the sidebar of the Server.app window, select the icon at the top with the name of the server. Then select the Storage tab in the main window pane.
    Navigate to the folder in question and select it. From the popup menu at the bottom with a gear icon, select
              Edit Permissions...
    Verify that the permissions are what they should be, and make changes if necessary. Then, from the same menu, select
              Propagate Permissions...
    Check all applicable boxes, including Access Control List. If in doubt, check all boxes. Click OK.

Maybe you are looking for

  • APEX and Primary Keys

    Hello: I ran into a situation where we have a table with no primary key set. When I tried to create a form, APEX told me that a primary key must be set in order to run reports. This makes complete sense. No issue here. For some of our tables, we can

  • HT3302 every time i connect my ipo

    When i connect my ipod classic 80g to the computer on itunes the computer freezes. How can I fix this? I have removes itune and the reinstalled, still no differences. am lost, help!

  • Using external database as source for automator

    Hi I have approximately 1500 quicktime files which require annotations added to them (title, author etc). I've been provided a spreadsheet with all the neccessary data. And I know there is an automator action that can add annotations to quicktime fil

  • Changing Location for Assignment Files

    I create lots of InCopy assignments from InDesign. (Using CC for both) For each New Assignment I have to  change all the options: "Location for Assignment File", "All Spreads", "Link Image Files when Packaging". Is there a way to set the defaults for

  • Stalling and Freezing

    I run Indesign CS4. It use to run perfectly for months, but in the last few weeks it has started to stall and freeze when I open old documents or even start new ones. I have tried to un/reinstalling useing the cleaning tool per trouble shoot. I have