Need one to on entry in final table

SAKNRPSWBT1PSWBT2PSWBT3
  10           1             0               0
  10           0             2               0
  10           0             0               3
   20          0             4              0
  20           5              0             0
  20           6              0             0
  20           0              0             7
This is my final o/p.
and i want the final o/p as under
SAKNRPSWBT1PSWBT2PSWBT3
10               1            2           3
20               5            4            7
20               6            0             0
I have moved PSWBT data to PSWBT1 PSWBT2 PSWBT3 as per doc type(BLART)
means if BLART = 'AA'
move wa_final-pswbt to wa_final-pswbt1.
same for above.
Please help me to get this.
Thank you.

Hi!
Ususally it is not neccessary to create manual entries in NAST.
You have to print the document from its transaction. Naturally there may be some other settings which are required after setting transaction NACE.
If you understand the Letter of delivery on the Goods Receipt, which can be printed from VL02N, then you have to set some automation to your printing using transaction VV22.
Regards
Tamá

Similar Messages

  • Need to insert 365 days in a table

    I am using oracle 10g.
    now i displayed the 365 days using the query below
    select trunc(sysdate,'YEAR')+rownum -1 dates
    from dual
    connect by rownum < 366;
    now i need to insert 365 days in a into a table called DAYS_IN_A_YEAR.
    table structure is:
    CREATE TABLE DAYS_IN_A_YEAR (
    DATE_COLUMN DATE)
    Regards,
    Ansaf.

    Hi all,
    Thank you for all.
    I need one more requirement in the same table.
    Now i alter the table and add two more columns(shift,professor) in that table(DAYS_IN_A_YEAR) and
    delete all the records already available in the table.
    Now my table structure is
    CREATE TABLE DAYS_IN_A_YEAR ( DATE_COLUMN DATE,
    SHIFT NUMBER (2),
    PROFESSOR VARCHAR2 (25));
    Note: Date_column format is dd/mon/yyyy
    I need to insert the records in table (DAYS_IN_A_YEAR) like the below one:
    DATE_COLUMN SHIFT PROFESSOR
    1/jan/2009 1 null
    1/jan/2009 2 null
    2/jan/2009 1 null
    2/jan/2009 2 null
    3/jan/2009 1 null
    3/jan/2009 2 null
    The above structure will continue for 365 days.
    Edited by: Ansaf on Feb 19, 2009 6:38 PM

  • Need to read all entris  for field prtxt from table /sapsll/prt

    hi
    i need to read all entries from table /sapsll/prt field prtxt but only one is coming
    pls see below seelct statement
    if not gt_sagmeld[] is initial.
                SELECT /sapsll/cuit~guid_cuit         " PK
                       /sapsll/cuit~QUANT_FLT         " to be displayed
                       /sapsll/cuit~QUAUM             " to be displayed
                       /sapsll/cuit~RPTDT             " to be displayed
                       /sapsll/cuit~guid_cuhd
                       /sapsll/cuit~guid_pr           " needed for gt_prt inttab
                      /sapsll/corref~refno
                       /sapsll/corref~guid_pobj
                INTO corresponding fields of table gt_sapsllcuit
                FROM ( ( /sapsll/cuit
                inner join /sapsll/cuhd on /sapsll/cuit~guid_cuhd = /sapsll/cuhd~guid_cuhd )
                inner join /sapsll/corref on /sapsll/corref~guid_pobj = /sapsll/cuhd~guid_cuhd )
                FOR all entries in gt_sagmeld
                WHERE /sapsll/cuit~guid_cuit = gt_sagmeld-guid_pobj.
             endif.
            if not gt_sapsllcuit[] is initial.
             select /sapsll/prt~prtxt
                    /sapsll/prt~guid_pr       
             into corresponding fields of table gt_prt
             from /sapsll/prt
             for all entries in gt_sapsllcuit
             where /sapsll/prt~guid_pr = gt_sapsllcuit-guid_pr.
    loop at gt_sagmeld into wa_sagmeld.
    read table gt_sapsllcuit into wa_sapsllcuit
    with key guid_cuit = wa_sagmeld-guid_pobj
    binary search.
    Read table gt_prcon into wa_prcon with key
    guid_pr = wa_sapsllcuit-guid_pr.
    if sy-subrc = 0.
    *wa_sagmeld_outtab-guid_pr  = wa_prt-guid_pr. 
    here i am facing problem as multiple entries from table  /sapsll/prt is not being displayed only one.....but i have checked in table it is having two enteries
    pls suggest
    reagards
    Nishant

    Hi Nishant!
    When you use 'for all entries' SAP (or database?) does a 'delete adjacent duplicates' on the result. This is necessary because of the special selection technique in this case.
    You need to select enough columns from /sapsll/prt, so that your two entries will differ in the result.
    Regards,
    Christian

  • Insert entries in empty table

    Hello experts,
    I got an easy question for you. How can I include new entries on any table that at the beginning does not have entries?. If the table has entries I can select one of them and insert new ones by debugging but I don´t know how to do it without entries
    Thanks a lot
    Regards
    German

    Hi,
    Go to se16,
    Write the table name you need then click on the white paper ()
    Insert your entries:
    Finally, click on Save

  • Delete any entry in the table before adding an entry?

    Hello ABAP Experts,
    I have the data in the work area. I can modify / update / insert to the table.
    How to write the ABAP code for this situation.
    1) to delete any entries in the table
    2) update this entry
    so finally always there would be only one entry.
    Suggestions appreciated.
    Thanks,
    BWer

    Hi,
    Delete the entries of table by this stmt.
    DELETE FROM (dbtabname).
    Then insert the values from workarea
    INSERT INTO dbtab VALUES <work_area>.
    And u can upadte the entry with values of workarea by this stmr.
    UPDATE (dbtabname) FROM wa.
    Dont use MODIFY. It will add a new record if its a new entry.
    Rgds,
    Prakash

  • Removal of  Developer Key entry from DEVACCESS Table.

    Hi,
    On table DEVACCESS, in QTY/DEV/Prod there is one person with Developer Key listed that I would like to remove,  User is no more working and now we want to delete the entry from this table which has the User name followed by the Developer key assigned.
    Could any one guide me in deleting the Developer Key access from the DEVACCESS table.
    Satish.

    Another alternative is to use SE11 to create a maintenance view (ex: ZV_DEVACCESS).  Secure the maintenance view with a custom authorization group.  With the maintenance view you have the ability to use SM30 to maintain the DEVACCESS data.
    That keeps the DEVACCESS table from changing and thus no need to register the change with SAP.
    Cheers,
    Brian

  • For All Entries with two tables

    Hi All,
             Can we use FOR ALL ENTRIES with two tables. for example
    SELECT * FROM MKPF INTO TABLE T_MKPF
             WHERE BUDAT IN S_BUDAT.
    SELECT * FROM MARA INTO TABLE T_MARA
             WHERE MTART IN S_MTART AND
                            MAKTL IN S_MAKTL.
    SELECT * FROM MSEG INTO TABLE T_MSEG
           FOR ALL ENTRIES IN  "T_MKPF AND T_MARA"
                  WHERE MBLNR EQ T_MKPF-MBLNR AND
                                 MATNR EQ T_MARA-MATNR.
    can we do it like this or any other way to do this plz tell. I waitting for your responce.
    Thanks
    Jitendra

    Hi,
    u cannot do like this....chek some documentation on it..
    1. duplicate rows are automatically removed
    2. if the itab used in the clause is empty , all the rows in the source table will be selected .
    3. performance degradation when using the clause on big tables.
    Say for example you have the following abap code:
    Select * from mara
    For all entries in itab
    Where matnr = itab-matnr.
    If the actual source of the material list (represented here by itab) is actually another database table, like:
    select matnr from mseg
    into corresponding fields of table itab
    where ….
    Then you could have used one sql statement that joins both tables.
    Select t1.*
    From mara t1, mseg t2
    Where t1.matnr = t2.matnr
    And T2…..
    So what are the drawbacks of using the "for all entires" instead of a join ?
    At run time , in order to fulfill the "for all entries " request, the abap engine will generate several sql statements (for detailed information on this refer to note 48230). Regardless of which method the engine uses (union all, "or" or "in" predicates) If the itab is bigger then a few records, the abap engine will break the itab into parts, and rerun an sql statement several times in a loop. This rerun of the same sql statement , each time with different host values, is a source of resource waste because it may lead to re-reading of data pages.
    returing to the above example , lets say that our itab contains 500 records and that the abap engine will be forced to run the following sql statement 50 times with a list of 10 values each time.
    Select * from mara
    Where matnr in ( ...)
    Db2 will be able to perform this sql statement cheaply all 50 times, using one of sap standard indexes that contain the matnr column. But in actuality, if you consider the wider picture (all 50 executions of the statement), you will see that some of the data pages, especially the root and middle-tire index pages have been re-read each execution.
    Even though db2 has mechanisms like buffer pools and sequential detection to try to minimize the i/o cost of such cases, those mechanisms can only minimize the actual i/o operations , not the cpu cost of re-reading them once they are in memory. Had you coded the join, db2 would have known that you actually need 500 rows from mara, it would have been able to use other access methods, and potentially consume less getpages i/o and cpu.
    In other words , when you use the "for all entries " clause instead of coding a join , you are depriving the database of important information needed to select the best access path for your application. Moreover, you are depriving your DBA of the same vital information. When the DBA monitors & tunes the system, he (or she) is less likely to recognize this kind of resource waste. The DBA will see a simple statement that uses an index , he is less likely to realize that this statement is executed in a loop unnecessarily.
    Beore using the "for all entries" clause and to evaluate the use of database views as a means to:
    a. simplify sql
    b. simplify abap code
    c. get around open sql limitations.
    check the links
    http://www.thespot4sap.com/articles/SAPABAPPerformanceTuning_ForAllEntries.asp
    The specified item was not found.
    Regards,
    Nagaraj

  • Entries in Database Tables are missing

    Hi Experts,
    In ERP2004,
    I have 2 tables in different clients. The 2 tables have some entries in Client 000. But same entries are not there in the 2 table in the copied client 020. IS there any way that these table entries can be brought into client 020?
    I am familiar with SCC1 but i donot have a transport request in Client 000. How to get these entries into target client.

    Hello
    Basically depending on the type of table involved , the recommendation varies.
    Just copying table entries may lead to inconsistencies etc .
    so need to find out what made the table entries disapper.
    If after analysis if its decided that the table entries are really required , then one way is to use R3trans to copy  data across clients.
    SAP note 1942 provide the details about it
    Hope this helps
    Ravinder

  • IDOC  error : Entry in inbound table not found

    Hello all...
    Iam gettin IDCO error when im processing inbound IDOC
    (basic type :FIDCCP02 and message type:FIDCC2)  like..
    <b>"Entry in inbound table not found..."</b>
    <b>in diagnosis:                                                                               
    Noinbound partner profile could be found with the following key:
        /XXXHUB/LS/LS/FIDCC2////  ..</b>
    but:
    I maintianed XXXHUB in logical system ( tcodeSALE  )    and
    in WE20 i maaintianed the parner profile in partner type LS with partner number XXXHUB   and also added  message type FIDCC2 with process code FID2  ...
    what else need to do/configure?....   
    let me know if u need more info...thnaks..

    Thanks guys...for your answers...
    there was some problem with message variant i assigned in the inbound parameters of sending system( XXXHUB)in the partner profile..( we20)...now i removed it...it is working fine..
    so  what's the problem if I assign the message varaint.do i have to declare the message variant anywhere?....
    one more thing...
    iam receiving idoc from XXXHUB to my DEV client200...i want to make clear which parameters(inbound/outbound) i have to maintain in WE20
    for sender  : XXXHUB (parter type LS).... inbound or outbound? ( i maintained both)
    for recipient :DEV200 ... inbound or outbound?(i maintained inbound)..
    Thnaks....

  • Error Creating Entries in EDISEGMENT Table for Data Src 0MATL_TYPE_TEXT

    Hello,
    We are facing issues for data sources after doing a client switch in Quality - BW system. 0MATL_TYPE_TEXT is one of the Data Sources which is throwing such an error.  I tried to delete entries from EDISEGMENT table in BW system. But this one being system tables without table maintenance, can't delete the entries for relevant datasources with Basis help (after opening the system for editing) as well. Can you suggest proper steps how we can delete entries from this table?
    Also, do we need to delete entries from EDISEGMENT tables in ECC as well for the data source? Is there any other table from which we should be deleting entries also and is there any risk associated with such deletion of table entries in BW/ ECC?
    If you have any other way of resolving this issue, please suggest.
    Regards,
    Dibyendu

    Hi,
    This is a standard table, so deleting entry from it is not advisable. You can any ways try correcting it.
    Check out note 493422. This may help.
    Regards,
    Shyam.

  • To to number consecutively entries inside a table

    Hello everybody,
    I need to to number consecutively my entries inside a table like this:
    Heading1     
    1.Entry one     
    2.Enty two     
    3.Enty three     
    My table in the template looks like that:
    Heading 1     
    <?for-each-group:current-group();./ID?> Entry <?end for-each-group?>
    How can I achieve thise result?
    Thank you in advance for your reply!
    Edited by: user8973846 on 10.06.2010 01:13

    You can use
    <?for-each-group:current-group();./ID?> <?position()?> Entry <?end for-each-group?>

  • Multiple entries in the table cabn

    Hello,
    Can Anyone tell me how is it possible to have multiple entries of the same "atnam" field in the table CABN.
    It has something to do with changing number.
    Because I used a wrong select-instruction e.g.
    select atnam in charact where .... IN ....
    So, I shoud used
    select DISTINCT atnam in charact where .... IN ....
    So, I'm gone need to try to put multiple entries in the table to check, if it's working well.
    Thanks a lot.
    Best Regards,
    Kais

    If I understand your Q - you mean there are two ATINN for the same ATNAM in your CABN table?
    I dont think that's possible. If you check CT04 and try to create a new characteristic with same name as an existing one - it will give you a warning and prevent creation.
    Since you say it's a standard characteristic - please mention the characteristic name (ATNAM)?

  • How to check duplicate entries in internal table??

    Dear Friends,
    How to check duplicate entries in internal table??
    Exp: In my internal table if I am having the same records more then ones then I need to print the error message, here I am using steploop for selecting the values from screen, and the values are coming into my internal table if user enter the same value more then ones I need to print the error message.
    Thanks,
    Sridhar

    Hi,
    After storing the data into internal table say ITAb, move the data into another internal table.
    t_dup[] = itab[].
    LOOP AT itab.
        count1 = count1 + 1.
        itab-count1 = count1.
        MODIFY itab.
    ENDLOOP.
    LOOP AT t_dup.
        count2 = count2 + 1.
        t_dup-count2 = count2.
        MODIFY t_dup.
    ENDLOOP.
      DELETE ADJACENT DUPLICATES FROM itab.
      LOOP AT t_dup.
        record_dup = 'N'.
        READ TABLE itab WITH KEY count1 = t_dup-count2.
        IF sy-subrc = 0.
          record_dup = 'Y'.
        ENDIF.
        IF record_dup NE 'Y'.
          t_dup-message = 'DUPLICATE ENTRY'.
          t_dup-flag = 1.
          MODIFY t_dup.
        ENDIF.
      ENDLOOP.
    Use this sample code.
    Reward pts if it is helpfull.
    Regards
    Srimanta

  • Change entry in ADR6 table

    Hi,
    I need to replace the existing email address domain with the new one [example: xxx(at the rate of)yyy.com to xxx(at the rate of)zzz.com] in ADR6 in two fields: SMTP_ADDR and SMTP_SRCH. There are huge number of entries in the table which apparently impossible to change manually in the SAP table ADR6 from SE11.
    Is there any way to change (replace) that in any efficient way rather than changing each and every entry?
    Is there any place, where I can make the change and it will reflect in the respective entries in the table?
    Please share your ideas.
    Thanks & Regards,
    Sujit.

    hi guys ,
    its very easy ,
    go for se16 , fetch all the records which are required to delete ( use only se16 lay out)
    after fetching the records just enter ' /H ' in the command bar
    and then double click on any of the enter , then u fill go to debugging screeen and then just press F7
    u will find the following code
    form set_status_val tables ntab structure x031l
                        using code name next for_lines.
      field-symbols: .
      refresh exclude_tab.
      if code = 'SHOW'.
        set titlebar 'TAB' with name 'anzeigen'(100).
      elseif code = 'EDIT'.
        set titlebar 'TAB' with name 'ändern'(101).
      elseif code = 'INSR'.
        set titlebar 'TAB' with name 'einfügen'(102).
      elseif code = 'ANVO'.
        set titlebar 'TAB' with name 'einfügen'(102).
      elseif code = 'DELE'.
    then just click on CODE and pass value as  DELE and press F8
    AND THEN U CAN DELETE ALL THE ENTRIES

  • Summarize or filter entries to another table

    Hello,
    please forgive my bad english but I am not a native speaker!
    I have a table:
    A..........B..............C..........D............E
    Name.......CalendarWeek...Date.......Amount 1.....Amount 2
    Tom........1..............05.01.09....100,00......20,00
    Susan......1..............05.01.09.....50,00......00,00
    Rob........1..............05.01.09....120,00......40,00
    Tom........2..............13.01.09....140,00......30,00
    Steve......2..............13.01.09....110,00......20,00
    Tom........3..............22.01.09.....80,00......00,00
    Susan......3..............22.01.09.....70,00......20,00
    Tom........4..............29.01.09....100,00......20,00
    Rob........4..............29.01.09....200,00......20,00
    I would like to filter out one certain name and put all corresponding entries in another table, i.e. like this:
    A..........B..............C..........D............E
    Name.......CalendarWeek...Date.......Amount 1.....Amount 2
    Tom........1..............05.01.09....100,00......20,00
    Tom........2..............13.01.09....140,00......30,00
    Tom........3..............22.01.09.....80,00......00,00
    Tom........4..............29.01.09....100,00......20,00
    I guess if I am able to do this I can figure out how to i.e. get certain weeks as well?
    A..........B..............C..........D............E
    Name.......CalendarWeek...Date.......Amount 1.....Amount 2
    Tom........3..............22.01.09.....80,00......00,00
    Susan......3..............22.01.09.....70,00......20,00
    I don´t wanna reorganize or filter in the orginal table since I need the results saved on a new table for printing and archiving.
    Thanks in advance
    Tom

    Tom,
    Another approach you may explore is to use the new Category feature of Numbers '09. Using your sample with a few more data rows, three identical tables were created.
    The Employee Table is categorized first by name and sub-categorized by week number while the Weekly table is categorized in reverse. Both are sorted by date, but the rows jump into place based on the categories as they are added. The category rows have been filled in with a darker green while a lighter green was used to fill the sub-categories in order to follow the content of the table visually.
    Adding rows to these tables can be somewhat unnerving because the completion of a cell will immediately move the new row to its proper category, so a third table, identical to the other two except that no categories are defined, is created. Data on these rows is copied to the bottom of the other two tables which become properly updated immediately.
    Formatting category rows is quite limited, but you are able to put subtotals in appropriate cells and add a fill color to make them stand out. Whatever formatting you apply to one category row is automatically carried to the other category rows of that level. More information is, of course, found under "Help".
    Also illustrated below is the capability of collapsing the categories so that only subtotals by week are shown.
    pw

Maybe you are looking for

  • Install windows 8 from USB on X1 Carbon

    I am trying to install windows 8 from the 3 disks that came with the X1 Carbon. There is no DVD drive and we have no external disk drive, so I need to create a bootable USB for this. The laptop came with windows 7 on it. It is easy to use DISKPART to

  • Setting primary key in ejbCreate()

    Hello, I'm having difficulty inserting a record into my database. The error reporting is telling me that I'm trying to insert a null value into my primary key column even though I have confirmed that the primary key column is being set in my ejbCreat

  • Issues with latest update to 7.0.2

    I did the update to my Iphone 4S. Now entering my passcode causes a delay of 10 sec. It is sticking after the first number is entered. No issues with update with ipad mini. Please advise

  • Sony Xperia U: Go for ICS or GB?

    Hi there, I have bought my Sony Xperia U today and I have to say I'm loving it so far. However, I read that the update to ICS kind of ruins the experience (due to lag, glitches and bugs). Now, I was wondering if those glitches and bugs have been fixe

  • User exit for actual dates in CJ20N

    I have a req,  When i start any activity i enter date in user field in actual dates as displayed in below pic Now when i enter date in user field it should be copied to actual  start date field in dates tab as shown in below pic Kindly suggest the us