Printing Personal number (PERNR) IN FOUR COLUMNS USING SMARTFORM

<<Mobile phone number removed - Read the Rules of Engagement>>
Hai Friends,
I have a problem with SMART FORM .
I tried to print PERNR Number of PA00002. I Need only one varible its printing fine. its printing  15 personal numbers per page.
my requirement is , it should  print 60 personal numbers on a page.
i am giving sample here.now its print like bellow.
20001
20002
20015 after 15 rows its going to next page. but i want like bellow
20001            20016           20031        20046
20002            20017           20032        20047
20015            20030           20045        20069
                  OR
20001               20002       20003         20004
20005               20006      20007         20008
20009               20010       20011        
Please let me know if any one knows this scenario. i am thankful to you.
Thanks and Regards,
BALU
<<Mobile phone number removed - Read the Rules of Engagement>>
Edited by: Matt on Nov 20, 2008 9:34 AM

Hai Karthik,
Thanks alot for your quick reply. i tried with your logic. its working for 4 numbers and mulitple of 4. if i give 20001 to 20004 or 20008 or 20012 in selection screen its working fine.
if i gave 20001 to 20003. its not printing. if i give 20001 to 20010, its printing till 20008 not printing 20009 and 20010.
i am sedning the code. pls can you tell me where is mistake. i am appending itab2 at last column.i think thats why its comming like this.but if i append after end of 4 th column its print only first column and remaining values are zero.
REPORT ZPPEMP_NUMBERS.
TABLES: PA0002.
SELECT-OPTIONS: S_PERNR FOR PA0002-PERNR.
DATA:  FM_NAME TYPE rs38L_fnam,
            T_PA0002 LIKE STANDARD TABLE OF PA0002 WITH HEADER LINE.
TYPES: BEGIN OF TY_EMP,
                COL1 LIKE PA0002-PERNR,
                 COL2 LIKE PA0002-PERNR,
                  COL3 LIKE PA0002-PERNR,
                COL4 LIKE PA0002-PERNR,
              END OF TY_EMP.
DATA: I_EMP TYPE STANDARD TABLE OF TY_EMP WITH HEADER LINE.
DATA; G_COUNT.
G_COUNT = 0.
START-OF-SELECTION.
SELECT * FROM PA0002 INTO TABLE T_PA0002 WHERE PERNR IN S_PERNR.
LOOP AT T_PA0002.
G_COUNT = G_COUNT + 1.
IF G_COUNT = 1.
I_EMP-COL1 = T_PA0002-PERNR.
ENDIF.
IF G_COUNT = 2.
I_EMP-COL2 = T_PA0002-PERNR.
ENDIF.
IF G_COUNT = 3.
I_EMP-COL3 = T_PA0002-PERNR.
ENDIF.
IF G_COUNT = 4.
I_EMP-COL4 = T_PA0002-PERNR.
APPEND I_EMP.
CLEAR: G_COUNT, T_PA0002.
ENDIF.
ENDLOOP.
I am passing  I_EMP table to FORM using CALL FUNCTION FM_NAME.
Hai karthik please can look in to this.
Hai viswa thanks for your reply , karthik solution is working almost.
thank you guys

Similar Messages

  • I am attempting to print a number of DL size envelopes using Word 2010 and Excel2010 on a HP Officej

    I am attempting to print a number of DL size envelopes using Word 2010 and Excel 2010 on a HP Officejet 6500A Plus printer in Operating system Windows 7. Using the mail merge facility the printer reports a paper mismatch. Word does not appear to have envelope DL size in its list of paper sizes only something called envelope #10. The Print driver software when I run out of stationery asks me to load more stationery and hit the OK button.
    Questions
    1. How do I add envelope DL size to Word 2010
    2. Where is the Officejet 6500A Plus OK button
    3. Has this problem been experienced by others
    Regards

    I am having the same problem does anyone have an answer there are many having the same problem

  • How to Pass personal number(pernr) to the ESS Webdynpro ABAP Application

    Hi,
    How to pass personal number of employee to the standard ESS webdynpro ABAP application as application parameter of iview.
    Thanks
    Srikanth

    Hi
    For WebDynpro application in iView there is a property to set Parameter for WebDynpro application.
    Handel these passed parameters in Default plug of Interface Controller.
    Note string passed as parameter in iview is case sensitive.
    Try this code to get URl of Deployed application
    String appURL = null;
    try {
         WDDeployableObjectPart currentAppPart =wdThis
                                  .wdGetAPI()
                                  .getComponent()
                                  .getApplication()
                                  .getDeployableObjectPart();
    appURL = WDURLGenerator.getApplicationURL(currentAppPart);
    } catch (final WDURLException ex) {
    wdComponentAPI.getMessageManager().reportException(
                             new WDNonFatalException(ex),
                             false);
    Mandeep Virk

  • Printing multiplte customer details on seperate pages using Smartforms

    Hi,
    I have a requirement where I have to accept the customer number using Select-options and display the customer details in seperate smartform pages.
    I applied the command in smartform giving the general attribute go to new page 'page1'.
    the details are getting printed on the smartform but all the customer details are getting printed on all the pages.Kindly tell me where I should make the change to print each customer detail in seperate pages.
    Thank u

    Make sure you use the command prompt correctly inside the MAIN window of the form. Trigger new page, when the customer number is changed ( to do this you need to place condition in the command prompt).
    Example scenario:
    Define global variable GV_KUNNR.
    Inside MAIN WINDOW:
    a) Display customer information
    b) In Command Prompt,  new page condition GV_KUNNR <> KUNNR.
    c) Code page: gv_kunnr = kunnr.
    I guess, above solution will help you to close the thread.
    Regards,
    SaiRam

  • Print Prog-Auto Print Barcode Label for Goods Receipt(MIGO) using Smartform

    Hi Guru's
    I have created a smartform that prints barcodes on a label.
    My tests print successfully to the Printronix thermal label printer.
    Is there perhaps a SAP Standard print program that i can use in my output type that will call my smartform upon goods receipt(MIGO)?
    please bear in mind that i am looking for a print program that calls a SMARTFORM. not a sapscript.
    /SMB40/M07DR does not exist on my system. and I am going to use output type WEE1 - for LABEL Printing
    Awaiting your feedback.
    Thanks in advance geniuses!

    Good luck dude,
    In that same program I noticed We01 that will print a smartform GR. I think if you use form entry_we01 in your output control you should do well.

  • Is it possible to change pernr of table VBPA using BAPI_SALESORDER_CHANGE ?

    Dear All,
    I want to change the Personal Number field of Table VBPA using BAPI BAPI_SALESORDER_CHANGE.
    I am trying, but its not working fine.
    Some one who has used the BAPI in same scenario, please come up.
    I think there is some problem in the parameters passed to the BAPI.
    Thanking You All.

    Dear Madhu,
    Thanks for replying,
    pernr field exists in "partnerchanges" tables parameter of the BAPI.
    In this tables parameter , the fields P_NUMB_NEW and P_NUMB_OLD exists for pernr.
    I think, I should properly pass value in UPDATEFLAG filed of the same paramter, but I do not know the exact value that I need to pass, I am passing 'X', but its not working.
    I am getting  FB call: insufficient parameters error in BAPI Return.

  • I get an Invalid Certificate notice when I try to access my https site for my printer. The serial number is the same as used by another certificate. In IE I was able to proceed to this address, but Firefox won't give me that option

    I get an Invalid Certificate notice when I try to access my https site for my printer. The serial number is the same as used by another certificate. In IE I was able to proceed to this address, but Firefox won't give me that option

    Hello,
    Thanks for contacting Mozilla Support!
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • How to print all columns using af:showPrintablePageBehaviour component ?

    Hi,
    JDev ver : 11.1.1.2.0
    I have 25 columns in my table and table is surrounded by panel collection.
    In panel collection toolbar facet I have added one command button and inside command button I have added af:showPrintablePageBehaviour compoent.
    I can able to see only 15 columns which are fits to entire browser window.
    How can I print all 21 columns using this in new browser window or any other way ?
    regards,
    devang

    Hi,
    showPrintable behavior only removes action components and beside of this renders the screen as you have it. If the screen you have doesn't show all of the columns then show printable behavior doesn't do either and you may need to look for alternative printing/reporting solutions
    Frank

  • Primary Key With Four Column ,How to use that Column As Primary Key In Form

    Dear All,
    i have create composite Key as primary Key With Four Column .
    How can i use these column in Form With Report Page.
    How can i use these four Column as primary Key to Edit Record .
    How can i do this.
    Thanks
    Vedant

    wrap a view around your table with this bogus primary key. Use an instead of trigger to handle the inserts and updates. And then look at using surrogate keys to resolve these bad design issues...
    5 out of 4 people don't understand fractions.
    Thank you,
    Tony Miller
    Webster, TX

  • Using number datatype for date column

    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?
    Many thanks

    Hi,
    Ora_83 wrote:
    Hi
    Is there a side effect for using "number" datatype for "date" column?
    If so, what is the disadvantage?Yes, there's a definite disadvantage.
    Oracle provides date arithmetic and a number of functions for manipulating DATEs. None of them work with numbers.
    For example,
    SELECT    TRUNC (order_date, 'MONTH')     AS order_month
    ,       AVG (ship_date - order_date)     AS avg_delay
    FROM       orders
    GROUP BY  TRUNC (order_date, 'MONTH')
    ;order_month involves a DATE function; it's pretty easy to find the month that conatins order_date.
    avg_delay involves date arithmetic. It's extrememly easy to find how much the time passed between order_date and ship_date.
    Depending on how you code dates as numbers, doing either one of the above may be just as easy, but doing the other will be very difficult. You'll waste a lot of effort converting the NUMBERs to real DATEs whenever you need to manipulate them.
    Validation can be very difficult for NUMBERs, also.
    Watch this forum. It's a rare day when there's not some question about how to get around a problem caused by storing dates in a NUMBER (or VARCHAR2) column. Don't add to that. Always use DATE columns for dates.

  • TS2755 I recently upgraded my IPhone and for 1 person I began receiving this "7233375 Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code". I receive text from this person but cannot send. Please help. Thank you.

    I recently upgraded my IPhone and for 1 person I began receiving this "7233375 Error Invalid Number. Please re-send using a valid 10 digit mobile number or valid short code". I receive text from this person but cannot send. Please help. Thank you.

    Hi there
    I’d be happy to help with this messaging error! This will be due to the device storing the number incorrectly. Please do the following to resolve the issue:
    Delete texts from both old number and new
    Delete any call logs including these numbers
    Delete old number from contacts
    Delete new number from contacts
    Restart device
    Send text to the new number directly (do not save as contact)
    Once the text sends successfully, you can then save as a new contact
    I hope this helps!
    Charise

  • How to know number of columns used in a cursor

    Hi,
    I am using some query in a cursor.
    I want to know the number of columns used in that query.
    Please let me how to do ?
    This is required because I want to export an oracle report into MS Excel.
    For this I need to know, upto which column I should write in excel cell.
    I am using Oracle 9i
    I hope, I am clear in my requirement.
    Regards
    Surendra

    You could use DBMS_SQL.DESCRIBE_COLUMNS :
    SQL> CREATE OR REPLACE
      2    FUNCTION column_count(
      3                          p_stmt VARCHAR2
      4                         )
      5      RETURN NUMBER
      6      IS
      7          v_cur     NUMBER;
      8          v_cnt     NUMBER;
      9          v_rec_tab DBMS_SQL.DESC_TAB;
    10      BEGIN
    11          v_cur := DBMS_SQL.OPEN_CURSOR;
    12          DBMS_SQL.PARSE(v_cur,p_stmt,DBMS_SQL.NATIVE);
    13          DBMS_SQL.DESCRIBE_COLUMNS(v_cur,v_cnt,v_rec_tab);
    14          DBMS_SQL.CLOSE_CURSOR(v_cur);
    15          RETURN v_cnt;
    16  END;
    17  /
    Function created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select * from emp'))
    column_count is 8
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select min(sal),max(sal) from emp'))
    column_count is 2
    PL/SQL procedure successfully completed.
    SQL> SY.
    Edited by: Solomon Yakobson on Sep 20, 2008 4:54 AM

  • How to access variable number of columns using ref cursor !

    Hi,
    I am trying to get variable number of columns using ref cursor.
    Declare
    mySzSql varchar2(2000);
    Type dynSqlRC is Ref cursor;
    current_cur dynSqlRC;
    tbl_rec alt_42_consolidated%Rowtype;
    Begin:
    /* This works */
    mySzSql := 'select *
    from
    Table1
    Where
    rowid = ''AAEWNEABXAAAAkxAAA''';
    /* i want something like this to work, this is not working, giving missing variable name error */
    mySzSql := 'select col1, col2, col3
    from
    Table1
    Where
    rowid = ''AAEWNEABXAAAAkxAAA''';
    open current_cur for mySzSql;
    fetch current_cur into tbl_rec;
    close current_cur;
    End;
    I do have the list of desired columns which I am looking to fetch, so after taking that in the record type, how should i get their values. Is it possible to traverse tbl_rec declared above and if column name matches then I will store the value in the array and finally return this array.
    Can somebody please tell me how to do this.
    Thanks

    It appears that this is a followup to How to loop through columns selected by select clause which is itself a followup to [url="
    How to execute dynamic sql"]this earlier thread.
    Assuming these are intended to be followup questions, can we please stick to a single thread? That makes it a lot easier to understand the situation and follow the conversation. Starting multiple threads makes it harder to follow the conversation.
    Thanks,
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Number I bought has been used by another person

    Hi,
    I have recently bought a skype number and I found out that it has been used before by another person. I get unwanted calls from people I don't know and have to explain them that this number does not belong to that person anymore. This is very annoying and I am dissatisfied. 
    Is there a way to know if the skype number that one chooses from the pool of "available" numbers has been used? I want a number that HAS NOT BEEN USED by another person.
    Many Thanks,
    /D.

    Logic is the APPlication (program, app) that you are having the problem with.
    Logic Pro can take advantage of other computers on your local (home or work) network to help it do "heavy lifting" data chores by using Bonjour and a feature called Nodes.   It seems that Logic is attempting to find and connect to another machine on your network.
    Do you have Logic installed on another computer there?  That may be the source of the confilict.
    You might want to post this question in the Logic Pro Community.
    Be sure to indicate the version of Logic Pro that you are using.  I'm sure the folks there can help you out.

  • Node port number :This port is in use.Select another port number-

    I am trying to insalled Informatica 9.0.1 Hotfix2 on my personal laptop and getting below error and was getting same error for 8.6.1, Si i have uninstalled it
    Node port number :This port is in use.Select another port number
    I have tried passing different no like 6005,6006,6007,6008.... but for all it giving me the same error.
    Can any please answer where i can check that which port system is using and what the available values?
    OS: Windows 7 Professional
    DB:Oracle11g

    Hi,
    Goto start > run > enter netstat -o command and execute it and it will display all the addresses. In Foreign Address column the entire ipaddress:portnumber will be display and along with this process id(pid) will be displayed. Check whether the portnumbers are being used by any other application or it is in blocked state. If it is in blocked state then kill that process id with taskkill /pid /f command at command prompt.
    After doing this you can try to install it one more and let us know whether it got succeeded or not.
    Thanks,
    Navin Kumar Bolla

Maybe you are looking for

  • UNT segment generation in Idoc to EDIFACT mapping

    Hi Experts, I have gone through many blogs and found some of the solution. 1) Mapping through count function, which is not working as per my understanding. 2) Confuguration through seeburger workbench, but since we are having SAP PO 7.4 so seeburger

  • Display Arrangement Not Remembered

    Never had this problem until now (with the new MBP): I have a 30" Cinema Display at work which I use as an extended desktop on the right side of my laptop. I have a 30" Cinema Display at home which I use on the left side. It used to be that when I ca

  • Wifi problems

    I bought recentley a MacBook Pro and I cannot locate my home wifi network. It's finds other networks in the area but not mine. I tied to find it in the "join other networks" button but it wasn't succeed although I can connect to my wifi network with

  • Document Distribution Automation

    SAP-DMS  Expert in Document Management System there is Document Distribution process i know whole process of Document Distribution , but it is manual process i want to Automated it , How can i ??? point rewarded

  • Decode problem

    Hi, I have a problem with a decode function. I try to execute this select: select (DECODE(:CU_IES, 'D', (DECODE(:P_FISC, 1, a.flag1, 0, a.flag2) in (2,3,4)), (DECODE(:P_FISC, 1, a.flag1, 0, a.flag2) in (2,3,4,6)))) from flag a and a get this error OR