How to move the two itab into third itab

Hi sap guru ,
my question : i have 3 internal table (i_vbrk , i_vbrp and itab)
1.i_vbrk like vbrk .
DATA: BEGIN OF I_VBRK OCCURS 0 ,
     VBELN LIKE VBRK-VBELN ,
     FKDAT LIKE VBRK-FKDAT ,
     FKART LIKE VBRK-FKART ,
     KUNAG LIKE VBRK-KUNAG ,
     END OF I_VBRK .
2.i_vbrp like vbrp .
DATA: BEGIN OF I_VBRP OCCURS 0 ,
      VBELN LIKE VBRP-VBELN ,
      MATNR LIKE VBRP-MATNR ,
      WERKS LIKE VBRP-WERKS ,
      END OF I_VBRP .
but for THIRD internal table which i have ' itab ' should be having same FIELDS like both internal table (i_vbrk and i_vbrp)
so  I have ,
3. ITAB .
TYPES: BEGIN OF ITAB  ,
       VBELN TYPE VBRK-VBELN,
       FKDAT TYPE VBRK-FKDAT,
       FKART TYPE VBRK-FKART,
       MATNR TYPE VBRP-MATNR,
       WERKS TYPE VBRP-WERKS,
       KVGR1 TYPE VBRP-KVGR1,
       END OF ITAB .
IS THIS RIGHT ....
NOW I WANT THAT THE DATA WHICH I WILL FETCH FROM DB-TABLE FOR THOUSE TWO INTERNAL TABLE (i_vbrk and i_vbrp) SHOULD MOVE INTO THIS THIRD ITAB ..PLZ TELL ME WHAT WILL BE THE CODE FOR THAT ?
answer will be rewarded....

Hi,
  Common suggestion can be to use 'INNER JOIN' but to have
a good performance of the code You can try the following.
types : BEGIN OF t_VBRK,
VBELN LIKE VBRK-VBELN ,
FKDAT LIKE VBRK-FKDAT ,
FKART LIKE VBRK-FKART ,
KUNAG LIKE VBRK-KUNAG ,
END OF t_VBRK .
types : BEGIN OF t_VBRP,
VBELN LIKE VBRP-VBELN ,
MATNR LIKE VBRP-MATNR ,
WERKS LIKE VBRP-WERKS ,
KVGR1 TYPE VBRP-KVGR1,
END OF t_VBRP .
TYPES: BEGIN OF ITAB ,
VBELN TYPE VBRK-VBELN,
FKDAT TYPE VBRK-FKDAT,
FKART TYPE VBRK-FKART,
MATNR TYPE VBRP-MATNR,
WERKS TYPE VBRP-WERKS,
KVGR1 TYPE VBRP-KVGR1,
KUNAG LIKE VBRK-KUNAG , 
END OF ITAB .
data : i_vbrk type STANDARD TABLE OF t_vbrk,
       wa_vbrk type t_vbrk.
data : i_VBRP type STANDARD TABLE OF t_VBRP,
       wa_VBRP type t_VBRP.
data : i_itab type STANDARD TABLE OF itab,
       wa_itab type itab.
*/////write the select statements here.....//////
loop at i_vbrk into wa_vbrk.
  wa_itab-vbeln = wa_vbrk-vbeln.
  wa_itab-FKDAT = wa_vbrk-FKDAT.
  wa_itab-FKART = wa_vbrk-FKART.
  wa_itab-KUNAG = wa_VBRK-KUNAG.
  READ TABLE i_VBRP into wa_vbrp
  with key vbeln = wa_itab-vbeln.
  wa_itab-MATNR = wa_vbrp-MATNR.
  wa_itab-WERKS = wa_vbrp-WERKS.
  wa_itab-KVGR1 = wa_vbrp-KVGR1.
  append wa_itab to i_itab.
endloop. 
Reward points if helpful..................

Similar Messages

  • Stepper motor 8SMC1-USBhF and power meter PM100D: how to merge the two VIs into one and make a XY graph of the current position and the power

    Hi there,
    I have a stepper motor (8SMC1-USBhF) and a power meter (PM100D). I want to measure the power while the stepper motor is moving, and obtain an XY graph with the current position on x axis and the power on y axis. So I just merged the two VIs together by copying and pasting, and created local variables for current position and readout value, and changed them to read, and then linked them to the XY graph, but apparently it doesnt work.
    So could you please instruct me how to merge them and obtain an XY graph appropriately?
    Attached are the two VIs.
    Thank you!
    Attachments:
    PM100D Simple Example.vi ‏42 KB
    StepperMotor.vi ‏97 KB

    Hello,
    The XY graph requires that each datapoint on the X axis corresponds to a datapoint on the Y axis.  To create XY data you will need to creat two arrays of X data and Y data with the same amount of elements then cluster the two arrays together to wire into the XY graph.  As an example take a look at the VI snippet below.  Is there a specific error being thrown?
    Regards,
    Isaac S.
    Applications Engineer
    National Instruments

  • HT5621 I have 2 Apple ID , how I merge the two ID into one .

    I have 2 Apple ID . How do I merge it into one - all apps and notes etc

    You cannot merge Apple ID's, all purchases are assigned to one account and cannot be transferred to another.

  • I have installed the LATEST VERSION of itunes in my windows and i bought the new ipad with retina display ,i had moved music into the ipad from my windows through the itunes but I DONT KNOW HOW TO MOVE THE VIDEOS IN MY VIDEOS LIBRARY OF MY COMPUTER TO MY

    i have installed the LATEST VERSION of itunes in my windows and i bought the new ipad with retina display ,i had moved music into the ipad from my windows through the itunes but I DONT KNOW HOW TO MOVE THE VIDEOS IN MY VIDEOS LIBRARY OF MY COMPUTER TO MY

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 n above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    Apple software on Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • How to send the two PDF attachments into one mail

    Hi Team,
    I need one requirement...I have two forms ,one is cover sheet and another one is form data. These two forms are converted into two PDF documents and sent to vendor as mail attachments...
    Please suggest me,  how to send the two attachments through one mail .....
    Thanks & Regards,
    Samantula.

    Please SEARCH in SCN before posting. There are lots of threads related to send mail with multiple attachments.

  • How to move the anchor object in indesign cs2 using js?

    i can able to move the normal textframe and other objects but cant do this for anchor objects.
    syntex:  anchorobject.move([x value,y value],undefined,true)
    how to move the anchor objects?
    thanks
    subha

    Could it be that the anchord object in question won't move because you have it set to keep within margins which is preventing the move you're requesting? I've certainly run into that.
    I've also run into the situation where the object model thinks the anchored object is in one place when it is actually in another because of that same keep within margins option. In this case, a move will apparently not work because the move is invisible, it being completely outside of the margins -- although that only applies to relative moves, I think.
    Dave

  • How do I combine two regents into one in Logic Pro Arrange?

    how do I combine two regents into one in Logic Pro Arrange?

    Thanks for your input kcstudio. I would still be left with 2 regions although one after the other, on one track.
    I am trying to save steps of the way I am combining the info of 2 seperate regions into one: bouncing the 2 tracks then re-importing that audio back into the project. It would save a lot of time if you could just drag one region on top of the other
                                W.W.

  • How to move the arrows in navigation view?

    Hi, when i am using the navigation to define my page flow, i could move the page in the navigation with "SHIFT+MOUSE",but the arrow from one page to another can't be moved if i don't change position of the two pages, and when there are many pages, the arrows cross with each other, and it becomes hard for me to see them clearly. so how to move the arrows to organize them in a clearer view(Just like that in BEA Weblogic Workshop with JPF design)? is it something needes improving in Creator EA, or i just didn't find the way to do this?please help.

    Hi,
    We thank you for your valuable feedback. An RFE has been filed on your behalf for the same.
    Cheers
    Giri

  • Any way to re-dnld purchased music? had program change and somehow music went to My Pic's Folder which of course can't be used. Can't figure how to "move" the file around.  Have Windows XP..

    any way to re-dnld purchase music from itunes to computer? had a program change and somehow previously purchase music went into My Photos File. ???? do not know how !  can't figure out how to move the music to the itunes folder.

    Yes, visit this link.  It should help.
    Downloading past purchases from iTunes

  • How  to  copy  the  table1selected  records into table 2 in webdynpro java.

    Hi 
           how  to  copy  the  table1selected  records into table 2 in webdynpro java.
    venkat
    Edited by: venkatpvr on Sep 23, 2011 11:53 AM

    Hi Venkat,
    You have 2 Value Nodes one for Table1 and second for Table2.
    Table1 node having one more Value Attribute i.e check Box data type is Boolean. Now you are requirement are select records from Table1 Node and click on One Method that records will moves to Second Table2 Node.
    Create One Method for getting the Records from 1-Table to 2-Table
    CopytoTable2 ()
    In this method you have to write code like this
    If (wdContext.nodeTable1.Checkbox(true))
    If(1. Check the Table1 Value Node Size()>0)
    Get the Table1 records and set to table2 Value node.
    Else
    Please select check box// Error message
    Hope this helps!!
    Regards
    Vijay K

  • How to move the entries of table BNKAIN between systems

    Hi,
    Is there any way to export the entries of table BNKAIN from one SAP system (development) to another manually? This is the table which is not transported via a transport...even in development system the "transport entries" option is not active. IN SM30 the maintenance view is not created.
    Can you advice how to move the entries somehow manually?
    Thanks for any assistance!
    br,Slawek

    Hi, thanks for reply.
    In fact I checked the table BNKA and the entries there are not helpful for me in the target system.
    We are using there some user exit which is using the table BNKAIN and the following entries are there:
    Client Bank Country Bank Key        Internal bank
    790            CA           IHC6            1
    790            DE           IHC1            1
    790             FI             IHC             1
    790            FR           IHC3            1
    790            GB           IHC4            1
    790            US           IHC5            1
    I checked the properties of that table in SE11 and it is maintainable only with restrictions..thus I need to ask some other basis expert which will help me to inlcude those entries into a transport.
    Anyway thansk for your hints!
    Bye

  • How to Move "My Accounts" link into "My Dashboard" link ???????

    Hello Everyone....
    Anybody know this how to move "My Accounts" link into "My Dashboard" link?
    I have a requirement that i have to move "My Accounts" link (which is opening in the new window) to "My Dashboard" link (which has no reports published).
    I need this urgently....
    Thanks in Advance......

    hello kyle....
    Thank You for ur reply..
    we are using the OBIEE 10.1.3.2 version. The My Accounts link url is same like http://<servername>/analytics/saw.dll?UserPreferences&_scid=NBzLHCnJYTE
    The My Dashboard link url is http://<servername>/analytics/saw.dll?Dashboard
    Username: Administrator
    Password: Administrator
    Could you please tell me is any details further required??? if u give me any document or information in this regard it is so helpful to me.
    Thanks....

  • Question - how do I combine two users into one?

    I have migrated a lot of data to a MacBook Pro using Migration Assistant, in the process two users have been created on the Mac. How do I combine the two users into one?

    You don't. Just log in with one, choose Go to Folder from the Finder's Go menu, provide /Users/ as the path. and drag the folder there; you'll need to provide an administrator password at some point.
    (108352)

  • I bought two films on my ipod tough 4g ( normally comes up on my ipad if i have bought something on my ipod) but i dont know how to get the two films on my ipad without paying for them.

    I bought two films on my ipod tough 4g ( normally comes up on my ipad if i have bought something on my ipod) but i dont know how to get the two films on my ipad without paying for them.

    Movies work differant than TV shows, music and apps. With movies, to get them from one device such as an iPod Touch to an iPad, you would need to connect the Touch to your computer first and in iTunes under the file menu, hit transfer purchases. Next connect the iPad and you can sync the movie to the iPad.
    While the iPad is connected to the computer, in iTunes, click on the iPad in the left pane and when the screen loads, click movies and from there, you can select the movie that you want to sync.

  • How to move the data of a table from sqlplus to XML file

    Hi,
    Could you pls guide me how to move the data of a table from sqlplus to XML file.
    i want to do it from sqlplus rather than toad.pls help
    Thanks

    Oh..I'm in 9i.
    Try this out..and let me know.
    DECLARE
    CTX DBMS_XMLGEN.CTXHANDLE ;
    XML CLOB ;
    F UTL_FILE.FILE_TYPE;
    XMLC VARCHAR2(32767);
    BEGIN
    CTX := DBMS_XMLGEN.NEWCONTEXT('SELECT * FROM department1 ') ;
    XML := DBMS_XMLGEN.GETXML(CTX) ;
    XMLC:=TO_CHAR(XML);
    SHOW_ENVELOPE(XMLC);
    F := UTL_FILE.FOPEN('ATTACH_FILES','DEPT.XML', 'W');
    UTL_FILE.PUT_LINE(F,XML);
    UTL_FILE.FCLOSE(F);
    END ;
    Good luck!!!
    Bhagat
    null                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • SUM from ALV grid

    Hey all, What i have to enable the sum button on the alv grid ... i guess from application bar....it is sign of sum... please give me option what i have to do.... points will be rewarded.....

  • Payment run issue F110

    Dear all, we recently migrated from 4.6 to 6.0. For our small subsidiaries, we have a program to load vender's invoices without specifying payment method and house bank. Before migration, F110 took the payment method and house bank from vendor´s mast

  • Error after deployment

    Deployed hyperion on Oracle Application server sucess fully. How ever unable to go open hyperion console. if i see in opmn.log i got these entries. ======= 09/11/10 10:43:08 libopmnoc4j Process Ping Failed: ProviderServices_Group~OC4J_ProviderService

  • Why is the cache on Safari so weak?

    Is it just me or is the cache iPhone's safari not useful. I mean, is there cache at all? Its hard to tell because the only thing you can do with it is clear it. Where are the other settings for it? I don't see why I have to continually reload pages w

  • Deletion purchase requisition linked to sales orders

    Hi gurus, in my SAP system there are purchase requisition created by schedule line from sales orders. For different reasons the sales orders were deliveried and billed with stock free and not with customer stock. When I try delete de purchase requisi