Can we join a table structure  and a transparent table?

Pls let me know, whether we can join a table structure  and a transparent table and how?

Hi rich,
     Since i dont have ur id ,iam posting my issue on this ,can u please help me on the below issue.
below i have a set of code which would sends email along with attachtment .
iam getting the XLS attachtment perfectly ,but for TXT attachtment there was problem with formating all the records are formated in single line .
a solution on this would be helpfull.
Thanks,
vinay .
FUNCTION Z_SHANKAR_ATTACHMENT.
""Local Interface:
*"  IMPORTING
*"     VALUE(EMAILID)
*"     VALUE(SUBJECT)
*"     VALUE(ATYPE)
*"  TABLES
*"      ATTACH_FILE STRUCTURE  SOLISTI1
*"      BODY OPTIONAL
This table requires information about how the data in the
tables OBJECT_HEADER, CONTENTS_BIN and CONTENTS_TXT are
to be distributed to the documents and its attachments.
  DATA OBJPACK LIKE SOPCKLSTI1 OCCURS  2 WITH HEADER LINE.
This table must contain the summarized data dependent on each object type.
SAPscript objects store information here about forms and styles,
for example. Excel list viewer objects store the number of rows and columns
amongst other things and PC objects store their original file name.
  DATA OBJHEAD LIKE SOLISTI1   OCCURS  1 WITH HEADER LINE.
This table must contain the summarized content of the objects identified as binary objects.
  DATA   OBJBIN TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                 WITH HEADER LINE.
This table must contain the summarized content of the objects identified as ASCII objects.
  DATA OBJTXT  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
This table must contain the document recipients.
  DATA  RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE .
This structure must contain the attributes of the document to be sent.
  DATA: DOC_CHING LIKE SODOCCHGI1.
  DATA: TAB_LINES LIKE SY-TABIX.
Create the internal table for body , subject
  DATA: IT_BODY LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
*changes added to the code by shankar.
constants: x(1) type X value '0A'.
*End of changes to the code
CONSTANTS: con_cret TYPE C VALUE cl_abap_char_utilities=>horizontal_tab,
           con_tab TYPE C VALUE  cl_abap_char_utilities=>cr_lf,
           con_new type c value  CL_ABAP_CHAR_UTILITIES=>NEWLINE.
Move Body to Internal Table (body into it_body)
  LOOP AT BODY .
    MOVE BODY TO IT_BODY .
    APPEND IT_BODY .
  ENDLOOP.
  DOC_CHING-OBJ_DESCR = SUBJECT.   "Subject of the Email
Move the Subject and Body to OBJTXT
  OBJTXT[] = IT_BODY[].
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHING-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM   = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM   = TAB_LINES.
OBJPACK-DOC_TYPE   = 'RAW'.
APPEND OBJPACK.
Convert IT to Excel format
IF ATYPE = 'XLS' .
  LOOP AT ATTACH_FILE .
    REPLACE ALL OCCURRENCES OF '#' IN ATTACH_FILE WITH con_cret. "  INTO objbin.
    CONCATENATE  ATTACH_FILE con_tab INTO objbin.
    APPEND  objbin.
  ENDLOOP.
ELSEIF ATYPE = 'TXT' .
  LOOP AT ATTACH_FILE .
    REPLACE ALL OCCURRENCES OF '#' IN ATTACH_FILE WITH con_tab. "  INTO objbin.
    CONCATENATE con_new ATTACH_FILE-line  INTO OBJBIN-line .
*changes done by shankar
*CONCATENATE ATTACH_FILE-line con_new INTO OBJBIN-line .
    APPEND OBJBIN .
  ENDLOOP.
ENDIF.
****End-Code Excel Format .
DESCRIBE TABLE objbin LINES tab_lines.
objhead = subject. APPEND objhead.
Creating the entry for the compressed attachment
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num   = 1.
objpack-body_start = 1.
objpack-body_num   = TAB_LINES.
objpack-doc_type   = ATYPE.
objpack-obj_name   = 'ATTACHMENT'.
objpack-obj_descr = 'TEST'. "Attachment File Name
objpack-doc_size   = TAB_LINES * 255.
APPEND objpack..
reclist-receiver = EMAILID.
reclist-rec_type = 'U'.
APPEND reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
  EXPORTING
   DOCUMENT_DATA                    = DOC_CHING
   PUT_IN_OUTBOX                    = 'X'
   COMMIT_WORK                      = 'X'
IMPORTING
  SENT_TO_ALL                     =
  NEW_OBJECT_ID                   =
  TABLES
    PACKING_LIST                    = OBJPACK
   OBJECT_HEADER                    = OBJHEAD
   CONTENTS_BIN                     = OBJBIN
   CONTENTS_TXT                     = OBJTXT
   RECEIVERS                        =  RECLIST
EXCEPTIONS
   TOO_MANY_RECEIVERS               = 1
   DOCUMENT_NOT_SENT                = 2
   OPERATION_NO_AUTHORIZATION       = 4
   OTHERS                           = 99 .
ENDFUNCTION.

Similar Messages

  • Can we join 3 tables with left outer join

    hi friends.
          Can any one tell how to join 3 tables using <b>left outer join</b>...i tried by taking some fields of <b>ekko,ekpo,eket</b>, but this not working ... plz give a sample code with some fields.

    Hi Uday
    <b>Inner joins using 3 tables </b>
    <i><b>Try this :-</b></i>
    SELECT stpo~stlnr stpo~idnrk mast~matnr mara~mtart stpo~menge 
    INTO CORRESPONDING FIELDS OF TABLE zmat1 FROM mast 
    JOIN stpo ON stpo~stlnr = mast~stlnr 
    JOIN mara ON mara~matnr = mast~matnr 
    WHERE stpo~stlty = 'M' "AND stpo~idnrk IN s_matnr 
    AND mast~werks = 1000.
    <b><i>Here s_matnr is a select-options on the selection-screen. </i></b>
    <i><b>Or this. </b></i>
    <b>Code: </b>
         Select single Vbrk~Bukrs Vbrk~Kunrg    Vbrk~Vbeln 
                       Vbrk~Fkdat Vbrk~Bstnk_Vf Vbrk~Zterm 
                       Tvzbt~Vtext 
                       Vbak~Vbeln Vbak~Bstdk 
                       Likp~Vbeln Likp~lfdat    Likp~Lfuhr 
           into w_vbrk 
           from vbrk 
          inner join       Tvzbt on Tvzbt~Zterm        = Vbrk~Zterm      and 
                                    Tvzbt~Spras        = sy-langu 
          Inner join       Vbfa  as SalesLnk 
                                 on SalesLnk~vbeln     = pu_vbeln        and 
                                    SalesLnk~vbtyp_v   = c_order 
                inner join Vbak  on Vbak~Vbeln           = SalesLnk~Vbelv
          Inner join       Vbfa  as DeliveryLnk 
                                 on DeliveryLnk~vbeln   = pu_vbeln       and 
                                    DeliveryLnk~vbtyp_v = c_Delivery 
                inner join Likp  on Likp~Vbeln          = DeliveryLnk~Vbelv 
          where vbrk~vbeln = pu_Vbeln.
    <i><b>This code locates sales, delivery and payment terms info from a billing document number.</b></i> 
    <i><b>or</b></i>
    <b>
    Here, this one also works fine :</b>
    select zfpcd~cadivi zfpcd~proforma zfpcd~factura zfpcd~aniofactura 
    zfpcd~montousd zfpcd~montoap zfpcd~ebeln zfpcd~inco1 
    zfpcd~lifnr lfa1~name1 zcdvs~status zfpcd~conint 
    into it_lista 
    from zfpcd inner join zcdvs 
    on zfpcd~ebeln = zcdvs~ebeln 
    and zfpcd~proforma = zcdvs~proforma 
    and zfpcd~lifnr = zcdvs~lifnr 
    inner join lfa1 
    on zfpcd~lifnr = lfa1~lifnr 
    where zcdvs~status = '04'.
    Reward if helpfull
    Regards
    Pavan

  • How can i join the tables

    hai guys,
    can any body explain the table joining procedure step by step process.what is the necessay to join the tables
    Regards
    kiran

    Hi,
    Steps
    1. Enter t.code : SQVI
    2. Enter the name : TEST press the create button.
    3.Enter the title & Comments
    4.Select table to join
    5.Select the second icon (INSERT TABLE)
    6 enter table name : EKKO
    7.again insert table
    8.enter table name : EKPO
    Note the table you are joining should have COMMON field
    9. press green arrow button
    10. Select the  output parameters in table 1 -EKKO
    11  Select the output parameters in table 2 -EKPO
    12. select the  layout
    13 SAVE
    G.Ganesh Kumar

  • How can I join together a photo and a text (or other vector files)?

    Hi all.
    I'm trying to do a poster with a sort of graffiti writings on a wall but I can't reach for any kind of realism. I'd like to see the writing on the wall like it was actually written.
    I'm using a real photo behind the writings but the image and the text don't connect together, it is simply like a copy-past work. I don't know if I was clear because English is not my first language.. the effect I'd like to reach is like if the writings were printed on the wall.. but the wall is a photo so I don't know if they can be joined together..

    Sounds like you are looking to make the writing realistic. That is better done in photoshop. Some tisp you can sue
    use a blending mode on your writing so that it blends naturally into
    If your wall is made of brick for example, you can save a grayscale imageg of your weall and use displace in photoshop to distort the writng so it looks liek it is follwoing a bump mapo of the grayscale imaeg you made
    you can use a grayscale of your wall as a mask on your writing. Use a curve to brighten the mask, so most of the writing shows through, except for some edges and such you want to roughen up

  • How can I join 3 tables while extracting data from SAP R/3?

    I have 3 tables with the following columns
    Emp table (emp)
      emp_id
      emp_name
      emp_add
    Dept table (dept)
      dept_id
      dept_name
      dept_loc
    Location table (loc)
      loc_id
      loc_name
    Now. If I want to select data from loc_id = 10 and emp_id between 2000 and 3000
    How to join these three tables while extracting data from R/3
      join condition
       loc.loc_id = dept.loc_id
    and dept.dept_id = emp.dept_id
    and loc.loc_id =10
    and emp.emp_id between 2000 and 3000.
    Could any one let me know the procedure to extract this data into BW system.

    Hi,
    shouldn't your join condition be:
    loc.loc_id = dept.DEPT_LOC
    and dept.dept_id = ??
    If you can join the three tables then create a generic datasource (RSO) based on a view (create your view with your join in SE11).
    Enable the loc_id and the emp_id as selectable in the datasource so you can then select the values from a BW IPack.
    hope this helps...
    Olivier.

  • How can you repair "invalid node structure and invalid b-tree node size"

    I have a MacBook Pro 17"  and the original install disk is Mac OS 10.4.  I have an update 10.6 install CD, but I cannot use it to boot up my computer.  My computer had been running on 10.6 when the problem occurred.
    It seems my harddrive has crashed. It only boots to apple logo and spins.  I have reset the pram. Started up in safe mode with shift pressed down and started up on the start up disk,  where I did repair disk and got this "invalid node structure invalid b-tree node size".  Then it said repair failed to complete.  I tried booting again but it still failed. I thought doing a restore might solve the problem.  I have a month old backup with time machine which is on a lacie external drive, but when I try to restore using my original 10.4 install disk, I can only choose the lacie hardrive icon (by dragging) and cannot choose the folder in the backups with the latest backup.  When I tried to restore, it says my source is not a valid option.  Is this because it is a 10.4 startup disk.
    Basically I have two questions:  Is there a way to fix my problem without doing a restore and if I have to restore, how do I restore my time machine backup?  Will I need to do a reinstall with 10.4 and then update to 10.6?
    I really hope to find a way to have my computer back to how it was when it started spinning and if not, at least as it was when I did the latest backup 3 weeks ago. 
    Please help me!!! 
    Rebecca

    You should be able to boot to the Snow Leopard upgrade disc — you had to do so to install the upgrade in the first place. If you can't boot to it now, either the disc is scratched or dirty or your drive's lens is dirty; for the latter problem, a drive cleaning disc is an inexpensive, frequently-used and often successful remedy, available at any store that sells DVDs.
    Because you're running Snow Leopard now, you should repair your hard drive directory using the Snow Leopard version of Disk Utility, not the one on your Tiger installer disc. If you aren't able to do so even after trying to clean your drive, you could buy and use DiskWarrior to rebuiild the damaged HD directory. But DW costs nearly $100, and though it would probably do the trick, that's a bunch of money. You'll have to weigh its cost against the value of the new or changed data on your drive that hasn't been backed up in the last three weeks. If you can get along without that data, then erasing your hard drive and restoring from your last backup is the no-cost, immediate (as opposed to waiting for a DW startup disk to arrive in the mail) solution.

  • How can i join pool table to a cluster tables ?

    Hi Experts,
    is it possible to join bseg to bkpf table if possible then please do help me with the required query for the same purpose.
    Thanks
    Aditya Rajput.

    Hi Aditya,
    There is nice blog on create joins for BSEG and BKPF.
    Refer to the link below
    Query Report Tips Part 3 - Efficient Data selection with BSEG Joining BKPF
    Hope this helps.
    Regards,
    Deepak Kori

  • How many APs Can I join a WLC 4402 and WiSM?

    I have a WLC with 20 APs joined into the same management VLAN and
    I'll deploy other campus with 240 APs and 2 WiSMs Blade.
    Is there any recomendation about how many APs Can I put on the same management VLAN?
    thanks a lot

    Cisco recommends 60 - 100 access points per vlan. Attached is the best pratices document
    https://cisco.hosted.jivesoftware.com/docs/DOC-4204

  • Can I join two tables from two different dbs by using transparent gateway?

    E.g.:
    select * from t1@rdb1, t1@rdb2
    Can this work?

    As previously stated you options depend on your Oracle version and platform and the target version and platform for the remote non-Oracle (well in this case mySQL) database.
    Oracle replaced HS or Generic Connectiivy with a new name and support module on 11g and maybe in 10g. You can see your manual CD or check the online documentation.
    For that matter you need to check to see if the Transparent Gateway product has a mySQL driver.
    The following Oracle support articles may be of interest.
    Master Note For The Oracle ODBC Driver [ID 741033.1]
    Detailed overview of connecting Oracle to MySQL using DG4ODBC database link [ID 1320645.1]
    Gateway Configuration Utility for Database Gateway for ODBC - DG4ODBC - to Connect to Non-Oracle Databases For Example - DB2, SQL*Server, Sybase, Informix, MySQL [ID 1274143.1]
    HTH -- Mark D Powell --

  • How can we use IMPORT-EXPORT as structure and TABLES parameters?

    Hello Sir,
    I have used SAPRFC with single IMPORT and EXPORT parameter.
    Could anybody give me an example in I can use IMPORT/EXPORT as structure and TABLE parameter as input?
    of course from/to PHP.
    Regards,
    RH

    Thanks

  • Join the Table with View

    Hi,
    My doubt is can I join the table with view in the below where clause condition in the query. If yes, the below query will take 4 hrs to execute it. Can I do the below query to write as simplest?
    SELECT *
      FROM uabpymt p, uavlsum l
    WHERE uabpymt_appl_ind = 'N'
       AND uabpymt_amount > 5
       AND l.uavlsum_balance < 0
       AND l.uavlsum_cust_code = p.uabpymt_cust_code
       AND l.uavlsum_prem_code = p.uabpymt_prem_codeuavlsum ---view
    uabpymt ---table
    The view script below:
    CREATE OR REPLACE VIEW UAVLSUM
    (UAVLSUM_CUST_CODE, UAVLSUM_PREM_CODE, UAVLSUM_AMOUNT, UAVLSUM_BALANCE)
    AS
    SELECT cust_code,
           prem_code,
           SUM(amount),
           SUM(balance)
    FROM (
    SELECT uabopen_cust_code cust_code,
           uabopen_prem_code prem_code,
           uabopen_billed_chg amount,
           uabopen_balance balance
    FROM   uimsmgr.uabopen
    UNION ALL
    SELECT uabpymt_cust_code,
           uabpymt_prem_code,
           uabpymt_amount * -1,
           uabpymt_balance * -1
    FROM   uimsmgr.uabpymt
    UNION ALL
    SELECT uabadje_cust_code,
           uabadje_prem_code,
           uabadje_balance,
           to_number(0)
    FROM   uimsmgr.uabadje
    WHERE  uabadje_balance <> 0)
    GROUP BY cust_code,
             prem_code

    Find the below explain plan output which we get from the execute the query
    STATEMENT_ID            TIMESTAMP     REMARKS        OPERATION     OPTIONS          OBJECT_NODE OBJECT_OWNER            OBJECT_NAME            OBJECT_INSTANCE      OBJECT_TYPE OPTIMIZER      
                16/01/2009 05:57:24                   SELECT STATEMENT                                                                                                                           RULE                                                                                                                                                   
                16/01/2009 05:57:24                   FILTER                                                                                                                                                                                                                                    
                16/01/2009 05:57:24                   SORT           GROUP BY                                                                                                                                                                                                                      
                16/01/2009 05:57:24                   TABLE ACCESS           BY INDEX ROWID                     UIMSMGR                     UABPYMT                                1                                             
                16/01/2009 05:57:24                   NESTED LOOPS                                                                                                                                                                                                                                  
                16/01/2009 05:57:24                   VIEW                                                   UIMSMGR                                                         3                                             
                16/01/2009 05:57:24                   UNION-ALL                                                                                                                                                                                                                              
                16/01/2009 05:57:24                   TABLE ACCESS           FULL                            UIMSMGR                     UABOPEN                                    4                                             
                16/01/2009 05:57:24                   TABLE ACCESS           FULL                            UIMSMGR                     UABPYMT                                    5                                             
                16/01/2009 05:57:24                   TABLE ACCESS           FULL                            UIMSMGR                     UABADJE                                    6                                                                                                                                                         
                16/01/2009 05:57:24                   INDEX       RANGE SCAN                                   UIMSMGR                     UABPYMT_CUST_PREM_INDEX                        NON-UNIQUE                                                                                                                           
    Index column:
    Table name :UABPYMT
    Column Name
    UABPYMT_APPL_IND  
    UABPYMT_APPROVED_IND    
    UABPYMT_PYMT_DATE          
    UABPYMT_SOURCE    
    UABPYMT_ORIGIN                   
    UABPYMT_CUST_CODE          
    UABPYMT_PREM_CODE         
    UABPYMT_PYMT_DATE          
    UABPYMT_AR_TRANS             
    UABPYMT_GL_IND                  
    UABPYMT_GL_POST_DATE     
    UABPYMT_AR_TRANS  

  • Can't "join" started hello conversation without camera on firefox

    Hello there
    So as title says I can't join a conversation I started with Hello app. I can create the room, share the link and I receive a notification that my other partner connected, but we can't hear\see each other. We both have FF36. Also on his side when he joins the room, he can see a text in the middle saying "you are the first to join the room". Weird thing is that I can absolutely join other people room, and it works correctly!
    The thing I think I noticed is that people with a camera can start and " host" properly a call. Another guy i know with my same setup (no camera and only mic on a desktop pc) has my exact same issue, can't host but can join other people rooms with a camera. Unfortunately we tested only with people that use laptops with integrated camera, so I don't have other people with my setup that can try and test if what i say is true.
    I don't know if I was clear enough on this, tell me if you need more info. We all had Windows machine, with win 7\8 no issue on that, different networks, ecc... only thing I noticed is that they all have a camera, me and the other guy don't.
    Any suggestions?
    Thanks a lot!
    PS is there any eta for Hello on Firefox for android? As of now I can join but I can't find a way to start a conversation!

    there are various programs like https://manycam.com that install an (additional) virtual camera driver on your pc to apply some after effects and so forth - you could try if this is enough to trick firefox hello. i haven't tried that so far ;-)

  • Can we join table with structure

    Hi
    i have taken fields from Plaf table and some fields from structures so now i want to join that how can i join.
    Is there any option?
    regards

    Hi,
    structure dont have any data base table associated with them so they dont have any data.
    that's why we cannot join structure witha table but we can include a structure within any table.
    Sytex to include structure in ztable:
    fieldname     data element.
    .include        struname
    hope it will ans ur query.
    Thanks
    Rajesh Kumar

  • Can we write a join on a view and a table

    Hi all,
    can we write a join on a view and a table. i got the requirement from my functional people about the following one
    Select CAUFV-AFUNR, CAUFV-AUART, AFVC-VORNR, CAUFV-FTRMI, CRHD-ARBPL
    into <ProOrd>, <OrdTyp>, <Opt>, <RelDat>, <WorCen>
    from CAUFV, AFVC, CRHD
    where CAUFV-WERKS = plant in selection screen
    and CAUFV-AFUNR = production order in selection screen
    and CAUFV-AUART = production order type in selection screen
    and CAUFV-FTRMI = range of release date in selection screen
    and CAUFV-AUFPL = AFVC-AUFPL
    and AFVC-ARBID = CRHD-OBJID
    and CRHD-OBJTY = ‘A’
    here CAUFV is a view and CRHD and AFVC are transperent tables.
    please tell me any feasible solution for this..
    Thanks  in Advance..

    Hi
    Refer these links:
    <u>http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec84446011d189700000e8322d00/content.htm</u>
    <u>http://www.sap-img.com/abap/what-is-the-different-types-and-usage-of-views.htm</u>
    <u>http://www.karakas-online.de/forum/viewtopic.php?t=730</u>
    Thanks
    Vasudha
    Message was edited by:
            Vasudha L

  • Can we join the transparent and pooled tables?

    hi friends,
    i have a doubt that is when we want to get the data from transparent and pooled tables it is not possible to join the tables.
    so should we go with nested select statements or is there any way to get the data? with better performance
    if i go with nested select statements it takes a lot time thats y i need a better way
    for example i want the data from BKPF and BSEG based on BELNR
    please send me how can we get it
    regards
    jagadish

    hi rob
    thanks for response
    see the below code once
    SELECT * FROM bkpf
              WHERE gjahr = p_gjahr
              AND ( monat BETWEEN lv_1st_mth AND gw_prev_monat ).
    *- Selection with cost center
          IF  gw_kostl NE SPACE.
                 s_kostl = s_kostl+3(10).
                 SELECT * FROM bseg
                      WHERE bukrs = bkpf-bukrs
                      AND   belnr = bkpf-belnr
                      AND   gjahr = bkpf-gjahr
                      AND   kokrs = p_kokrs
                      AND   kostl IN s_kostl
                      AND   buzei = '001'
                      AND   lstar <> ' '.
                 MOVE bseg-lstar TO itab2-lstar .
                 MOVE bkpf-bukrs TO itab2-bukrs.
                 MOVE bkpf-belnr TO itab2-belnr.
                 MOVE bkpf-gjahr TO itab2-gjahr.
                 MOVE bkpf-monat TO itab2-monat.
                 MOVE bkpf-budat TO itab2-budat.
                 MOVE bseg-kokrs TO itab2-kokrs.
                 MOVE bseg-buzei TO itab2-buzei.
                MOVE bseg-wrbtr TO itab2-wrbtr.
    *Changed----
                 IF bseg-shkzg = 'H'.
                   lv_wrbtrcd = 0 - bseg-wrbtr.
                   itab2-wrbtr = lv_wrbtrcd.
                 ELSEIF bseg-shkzg = 'S'.
                   MOVE bseg-wrbtr TO itab2-wrbtr.
                 ENDIF.
                 MOVE bseg-fdwbt TO itab2-fdwbt.
                 MOVE bseg-sgtxt TO itab2-sgtxt.
                 MOVE bseg-kostl TO itab2-kostl.
                 APPEND itab2.
                 ENDSELECT.
          ELSE.
                 s_kostl = p_estat+0(4).
                 SELECT * FROM bseg
                      WHERE bukrs = bkpf-bukrs
                      AND   belnr = bkpf-belnr
                      AND   gjahr = bkpf-gjahr
                      AND   kokrs = p_kokrs
                      AND   kostl IN s_kostl
                      AND   buzei = '001'
                      AND   lstar <> ' '.
                 IF bseg-kostl+0(4) = s_kostl.
                     MOVE bseg-lstar TO itab2-lstar.
                     MOVE bkpf-bukrs TO itab2-bukrs.
                     MOVE bkpf-belnr TO itab2-belnr.
                     MOVE bkpf-gjahr TO itab2-gjahr.
                     MOVE bkpf-monat TO itab2-monat.
                     MOVE bkpf-budat TO itab2-budat.
                     MOVE bseg-kokrs TO itab2-kokrs.
                     MOVE bseg-buzei TO itab2-buzei.
                    MOVE bseg-wrbtr TO itab2-wrbtr.
    *Changed----
                 IF bseg-shkzg = 'H'.
                   lv_wrbtrcd = 0 - bseg-wrbtr.
                   itab2-wrbtr = lv_wrbtrcd.
                 ELSEIF bseg-shkzg = 'S'.
                   MOVE bseg-wrbtr TO itab2-wrbtr.
                 ENDIF.
                     MOVE bseg-fdwbt TO itab2-fdwbt.
                     MOVE bseg-sgtxt TO itab2-sgtxt.
                     MOVE bseg-kostl TO itab2-kostl.
                     APPEND itab2.
                 ENDIF.
                 ENDSELECT.
          ENDIF.
          ENDSELECT.
    regards
    jagadish

Maybe you are looking for

  • Having major issues with InDesign CS6

    Having major issues with InDesign CS6. Not only is it crashing, but it is corrupting the existing file.  Then when I relaunch, it is not allowing me to open the file again. In another instance, yesterday I opened an file created 3 months ago and it a

  • JRE 1.4.2_01 dies in Windows XP

    We have several developers who recently upgraded to the JRE for 1.4.2_01 on Windows XP. I for instance upgraded yesterday from 1.4.0. For some reason, it all the sudden has started crashing the moment it tries to load an applet. It goes down and take

  • TS1506 Why I can't open attachments on my iPhone anymore?

    I used to be able to open any kind of attachment from emails, but now I just get the same page over and over again. Am I doing something wrong, or is it some problem with the phone?

  • RPD and Catalog Upgrade to 11.1.1.6

    Hi, We have a project to upgrade from OBIEE 10.1.3.4.1 to 11.1.1.6.0. The OBIEE installation is on RHEL 5.8 x86-64 server. I have the following questions reagarding this upgrade. 1) Can I upgrade the RPD and Catalog straight from 10.1.3.4.1 to 11.1.1

  • Acro 9 Pro Ext hyperlinks and attachments

    Hi, This is an odd one. I have a PDF that was created by MS Publisher 2008. The PDF document has hyperlinks that were created in original Publisher doc. If I open the PDF the hyperlinks (pointing to pages within the document) work OK. However, when I