Print  material po text in the main window of pur. order

Hi experts,
Here is my issue regarding MATERIAL PO TEXT in  smartform  of purchase order:
                      I want to get the material po text in the material description field itself or beside to this column  in the mainwindow only in the  print of purchase order
so please let me know how to read the material po text to a internal tab field.
very glad for ur replys
TNQs n REGARDS
mahathma

Hi    TNQs for ur responce.
  i want to get the item text in the  main window beside to material description column .
i think u got my point actually we'll have item texts for each item , i want to get the text of each item  in that row only
i used include text and i gave following attributes
Text Object :      EKPO
Text ID         :  A03
Language     :     EN
just tell me ,should i need to give any code for this.
thanks and regards,

Similar Messages

  • Issue with printing of multiple text elements in main window

    Hi experts,
    I have developed a sales order form in SAP script.
    I hv got two text elements in the main window. n i m calling these two text elements by using two write form functions in d print program.
    The first text element is gettin called n d relevant fields in dat particular text element is being displyed. (Window - Main)
    My problem is dat the second text element for the same main window is not gettin called n its relevant fields r not gettin displayed.
    Plz help me to solve the querry.
    Its urgent.
    Thanks n Regards,
    Purva

    Hi,
    Are you testing that from in same client where you developed, else make sure that after each change you need to transport the form to testing client.
    second thing is check with code did you mention the same text element in window editor and in the program.
    Reward if useful,
    Thanks,
    Sreeram.

  • Display text in script  at the bottom of the main window

    Hi all,
    I want to display a long text in the main window at the bottom.
    In case of single page output the text should be displayed in the main window at the bottom. But in case of multiple page output I want the text to be displayed only in the last page.I have tried giving the text inside BOTTOM ENDBOTTOM but its not working. In case of multiple page output also the text is getting printed an all the pages.Kindly let me know the answer at the earliest.
    Thanks & Regards,
    Neethupriya.

    Hi all,
    If anybody knows the solution please let me know at the earliest.
    Thanks & Regards,
    Neethupriya.

  • SAPScript: Positioning a Window (Graphic) behind the main window

    Hello,
    I want to print a graphic behind the main window. But I am not able positioning a window or graphic-window behind the main window. The result is that my graphic always shows up in front of the printed text of the main window and not behind the text of the main window, as I wish. I thought that the order of the windows determines which windows is on top? But I am not able of putting a window before the 'MAIN' design window.
    Regards, Lars.

    Hi Lars
    Please check the following thread:
    ABAP Development
    /: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON
    I think, trick must be in 'TYPE'.
    Try to explore what options you can have (here it is BMON). I will also try.
    Regards
    Ashish Jain

  • The main window of third page will not display the text element

    Hey, smartform guru,
    I am working on the smartform to print PO data.
    The smartform has first page and next page as usual.
    I created a third page P_TERMS to print the terms and conditions for PO printout.
    I used commend node to assign the page P_TERMS as the "Go to new page" and it did go to the P_TERMS page but the text element will not print in the main window in P_TERMS page.
    The text element will print in the secondary window.Since the terams and conditions are 4 pages long, I expected it to print in the main window, so I do not have to define several extra pages to print them.
    Any idea?
    Thanks in advance!
    Fisher Li

    Hi Fisher,
    Unfortunately, In a smartform, only single main window is continued to all pages even though you can declare windows under each page as main window, but it actually acts as the same window for all pages. It just means that if text from 1st page is overflowed, it will continue to the next page with main window.
    Command line to go to next page will create an extra page but since text is not flowed in main window, it won't print the text element you have included in main window on third page.
    The solution to your problem as I see is that either you include your terms and conditions in the main window of your first page and just before your text element for T&Cs, use Command to go to third page.
    Hope it helps.
    Ravi

  • How to print items in the MAIN window of the NEXT page (smartform)?

    Dear forumers,
    There are two pages (FIRST and NEXT) in my smartform with the same MAIN windows in each of the pages. Whatever that are changed in FIRST-MAIN window will also be seen in NEXT-MAIN window.
    I will need to control the printing of table TABLE3 contents (already contained in the MAIN window) such that if a variable V_MAT_PRINT is 'X', the TABLE3 contents will only be printed in NEXT page and not printed in FIRST page at all.
    How may I achieve this? Please help.
    Thank you.

    >
    Mohammed Ahasanullah Mulla wrote:
    > Hi Deborah,
    >
    > I had also faced a similar situation,in my case it was three pages..However i will try to tell you for 2 pages..After the second table .Add a program lines and force a page break only if V_MAT_PRINT is 'X'. After the program lines add a command and make the go to new page as second page.This will solve your problem.I have done the same and its working fine .If you have any questions do ask.
    >
    > Thanks,
    > Ahsan
    Hi Ahsan,
    Here's my case.
    If V_MAT_PRINT is 'X', print the following:-
    FIRST page, MAIN window
    - TABLE1
    - TABLE2
    - TABLE4
    - TABLE5
    NEXT page, MAIN window
    - TABLE3
    If V_MAT_PRINT is not 'X', print the following (no additional controls / changes are needed, everything remains unchanged):-
    MAIN window
    - TABLE1
    - TABLE2
    - TABLE3
    - TABLE4
    - TABLE5
    In this case, is a page break suitable? I doubt it as TABLE4 and TABLE5 will still need to be printed back on the FIRST page regardless of the V_MAT_PRINT value.
    Please advise further. Thanks.

  • Printing from the main window -- song order is not the same as playlist ??

    iTunes 10.0.1 (22)
    OS 10.6.4
    Let's say you have a album with 18 songs. The songs are in the exact order of the album, from 1 of 18 all the way to 18 of 18. (track numbers are also correct, in order). You view by album (constrain the results window by searching for album title)
    Now, print. Select any option, (I tried both cd jewel as well as song listing -- doesn't matter which you select).
    The ORDER of the printed song list (or jewel case insert) DOES NOT MATCH the order of the songs in the album.
    What good is that?
    I can recreate this with various albums.
    This NEVER happened before version 10.
    Anyone have any info on this?
    PS -- if you create a PLAYLIST and then copy the album into the playlist, it prints just fine. The issue is printing from the main window when in album view mode.
    Thanks,
    J
    Message was edited by: Jeremy Roberts

    Try changing X postion to not equal to zero something else for example.
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.1' CH YORIGIN '+0.4' LN
    /:           SIZE WIDTH +0.7 CH HEIGHT +5.0 LN
    /:           BOX FRAME 7 TW
    /:           BOX HEIGHT '1.1' LN INTENSITY 15
    Nabheet

  • Printing totals at the end of the main window?

    Hi All,
    This is Hr related and the data displayed in the main window is regarding the five benefit plans. I need to add the values from each plan. But the number of plans displayed is not constant. The plans for which he is eligible are displayed. So I need to display the totals after completion of the data.
    I want to print totals in the main window at the end of the form.  The print program is a standard SAP program and it is not to be changed. I had calculated the totals by calling a perform in the script editor. Thats working fine.
    But the problem is while displaying it. Is there a solution to print totals at the end of the form without changing the print program or without creating a new element(as it cannot be called from the print program)?
    Thanks
    Satish

    See there are so many element which ends with the ATLAST, like INVEST_AT_LAST.
    You need to find out which AT_LAST is triggering in your prorgram. Or, you can use the AT_LAST element of the same family where you put your PERFORM to get the total.
    Say if you put your code at BENEFI_AT_EACH_PERSON, you can use the BENEFI_AT_LAST for displaying the TOTAL.
    Hope it helps..!
    Regards,
    Naimesh Patel

  • Text-element in main window

    Hello together,
    is it sorrect, that text-elements can only be used in the main window?
    Is there any chance to use text-elemnts in a new-created window?
    an example that does not work:
    new window: TABLE
    call in print-program:
    CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              element = 'ITEM_GR'
              window  = 'TABLE'.
    Unfortunately i need a new window with a possibility to print several text-elements.
    Thanks a lot for help.

    Hi Marcel,
    In one of my developments, i've created text elements in the windows other than MAIN window. But it worked properly. I think there might be some other reasons for ur failure. Try to trace that.
    Or else u just try by changing the Window type as CONST.
    Try this out & let me know in case of any other concrens..
    Reward if useful.
    Pavan.

  • Command node inserted in the main window

    I have inserted a command note at the last window in order to get a third page in my form which is not connected to the First page . But the issue is due to this command node 2 footer wondows which are placed just after the main window are not getting printed. Kindly help me on that.

    Are you able to print 3rd page contains ??? It should work as I have done the same.
    in 1st page I call command node with GO to New page as LAST PAGE.
    Then inserted my text which need to print on the last page.
    After that I created Footer window. Which perfectly displaying.
    In the last page I have done the same except command node.

  • Can we create graphic and text in the same window of smartform without using template?

    we create graphic and text in the same window of smartform without using template?

    Hi Kinjal,
    as far as i understand you are talking about a template which you can partitioned and in one part you wants to show your graphics and in other part you wants to print your text, the border of template shall remain invisible.
    If you wants to do it without using a template, you can do it as sujjested by Susmitha, but creating a template will provide you more flexibility that if you wants to change the attributes in future you can do it easily.

  • Problem with Body of the main window

    Hi friends,
    While Printing the smart form the main window body is not reaching to the end of the main window dimensions.(There is no footer for the main window).
    Its Printing all the records and at the end its giving one line gap.
    My problem is the vertical lines will come, up to the line items it's having. and d last gap am not getting any lines.as the body is not reching to the end of main window.
    Plz help me why its taking one line Gap in d main window Body.

    Hi Farook,
    Select the line types and assign the patterns to display the lines properly.
    Regards,
    Sravanthi

  • Javascript window.open in BSP: new window is opened behind the main window

    Hello,
    I use following code to open a new window in my BSP application:
              window.open("<%= controller->display_url%>").focus();
    The new windows is openned up, but hide behind the main window, I need the new window to stay at the front, any idea?
    On one computer running IE7, the new windows is opened and stay at the front. But not for all other computers running IE6.
    Thanks, Jinjin

    Hi,
          We used the below logic :
    <htmlb:button id      = "help"
                        text    = "Help"
                        design  = "standard"
                        onClientClick = "window.open('http://www.sap.com')"
                        tooltip = "Help"
                        />
    It worked fine for us.
    Try this.
    Thanks,
    Greetson

  • How to find remaining space left in the main window

    Hi Guys,
    In one of the smartform there is a MAIN WINDOW, in which a table will be displayed with 3 or 4 entries for each material. ( so that atleast 3 tables are displyed on a single sheet)
    Some times if the space  is not enough in the main window to display the contents of the table, the contents will be displayed in the next page. (Eg - 1 entry at the end of the page with the header at the end of the page and remaining entries int he next page with the header, which is satisfying the client's requirement)
    Problem is some times only header gets displayed at the end(end of the main windw), but so space is avaliable to display the contents, so the contents will be displayed in the next page with the header again,
    so the end user will be seeing a header at the end of the page with no contents,
    Is there any way to solve this(Not to dislay the header if the contents of the table cannot be displyed)
    Is there a way to find the remaining space in the main window dynamically so that if i am able to find the remaining space is JUST 1 LINE ( or CM  or INCHES), then I can put a condition for not displaying the header).
    Regards,
    Naveen.

    Hi,
    In smartforms, there is no other way to find the remaining height of the main window on a page.
    Hence, another way to solve this is to restrict the contents of the table with templates designed such a way that if there is header and items then display exactly a set of rows which would fit clearly on a page.
    Also make the folder as page protected.
    This is tedious but there is no other way i think as we also faced similar kind of issue.
    Regards,
    Ram

  • Smartform doesn't show preview when the records exceed the main window size

    Hi
    When i print the smart form having line items exceeding the main window size on the page it does not show the preview. The internal table loop goes into infinite loop. Is there any means whereby if the records don't fit on the main window of the page will be continued to the next page. Right now I have no clue how it is to be resolved. I feel the problem is in layout, as when i remove the main window the internal table code works fine and it does not move in infinite loop. Please help me resolve this issue.
    Thanks in advance

    Hi
    I have deleted the table from main window and instead inserted a loop.
    Also i created the two pages. But the problem still persists.
    But for my requirement my each line item in the main window has 3 lines.
    Also my layout will be the same for all pages so is there a need to create a new page.
    Is there any mechanism whereby if the line items dont fit on the mainwindow of the page will automatically continue on another page without having to define it.. please guide? Right now the smartform goes in infinite loop if it doesn't fit in main window size
    Thanks

Maybe you are looking for