Joing two files by Numeric and alpha field.

I asked this question yesterday and thought it complete. Unfotunately, I don't know SQL as well as I thought I did.  I nedd to link two files together. In the Address Book Master(F0902), I need to link ABAN8(numeric Field) to GBSBL(Alpha Field) in the Account Balances File(F0902).
I was not sure how to convert the correct field and then how to link them. Below is the SQL that I have built. It is missing the convert and the Link.
Thanks again, Rick
SELECT "F0101_Address_Book_Master"."ABAN8_Address_Number", "F0101_Address_Book_Master"."ABALPH_Alpha_Name", "F0101_Address_Book_Master"."ABAT1_Search_Type"
FROM   "F0101_Address_Book_Master" "F0101_Address_Book_Master"
WHERE  ("F0101_Address_Book_Master"."ABAT1_Search_Type"='E' OR "F0101_Address_Book_Master"."ABAT1_Search_Type"='X')
SELECT "F0902_Account_Balances"."GBAN01_Net_Posting_01", "F0902_Account_Balances"."GBFY_Fiscal_Year", "F0902_Account_Balances"."GBSBL_Subledger"
FROM   "F0902_Account_Balances" "F0902_Account_Balances"
WHERE  "F0902_Account_Balances"."GBFY_Fiscal_Year"=11

Not clear what your database is assuming its SQL server
SELECT "F0101_Address_Book_Master"."ABAN8_Address_Number", "F0101_Address_Book_Master"."ABALPH_Alpha_Name", "F0101_Address_Book_Master"."ABAT1_Search_Type", "F0902_Account_Balances"."GBAN01_Net_Posting_01", "F0902_Account_Balances"."GBFY_Fiscal_Year", "F0902_Account_Balances"."GBSBL_Subledger"
FROM "F0101_Address_Book_Master" "F0101_Address_Book_Master"
inner join  "F0902_Account_Balances" "F0902_Account_Balances" on "F0101_Address_Book_Master"."ABAN8" = cast("F0902_Account_Balances" ."GBSBL" as int)
WHERE ("F0101_Address_Book_Master"."ABAT1_Search_Type"='E' OR "F0101_Address_Book_Master"."ABAT1_Search_Type"='X')
and "F0902_Account_Balances"."GBFY_Fiscal_Year"=11
again assuming "F0101_Address_Book_Master"."ABAN8" is in fact an int, change cast to numeric if appropriate
Ian

Similar Messages

  • Unable to replicate both Numeric and alpha numeric vendors records from R3

    Dear all,
    In our ECC 5 environment, we have some vendors who master record numbers that are numeric internally assigned i.e 7000000 or 23000000 and some alphanumeric externally assigned i.e SmallBusiness1 or Grinad10. This is posible as you may know via vendor account groups.
    We have implemented a classic scenario in SRM 4, Server 5 environment, therefore we need to replicate ECC backend vendors masters. We initally set SAP's AB business Partner (vendors) number range in SRM to A  - zzzzzzzz and created numeric number ranges to match thoes set up for all our vendors in ECC.
    When we ran BBPGETVD only the alpha numeric vendors records replicated down to SRM. The numeric were ingnored. The BBPGETVD t-code was reporting that the other vendors had incorrect data.
    We then chnaged the AB Business Partner (vendor)number range to 000000001 - 999999999 and ran BBPGETVD. Only then did the numeric vendors get replicated down to SRM. But the issue is now, I cannot replicate the alpha numeric with out chaanging the number range back to A - zzzzzzzzz.
    Question,
    How can I set the Business Partner(Vendor) number range in SRM to anable the replication of both Numeric and Alpha numeric assigned vendor records down to SRM.
    Thanks,
    Grace

    Christophe,
    PLEASE HELP I HAVE AN URGENT ISSUE NOW!!!
    On the subject of setting back the internal BP number range, does SRM expect it to be set for example to:
    01  0000000001 - 0000999999?
    Should the grouping for this internal number range be also ways set to 0001. Iam refernceing the settings in our sandbox client, they seam to be set up that way.
    If its set to say 0003, will this cause a problem?
    Because we have set all our BP ranges to external, any ORG unit, USER or position that we created after we "removed" the internal number range does appear to be working.
    I have noticed this. when I login as a new user and try to create a shopping cart, tthe product category drop down does not work on the "new user".
    If I go in the BP transaction and search for this new user or new unit org units that where created after the removal of the internal number range nothing is found!. The last internal BP number is 105.
    Question.
    If I set the internal number range back to
    01 0000000001 - 0000099999 and set the current number to 106, then delete and recreate the org units, do you think this will work?
    Please help I need to get this issue sorted out because as you said no new org unit/user can be setup.
    Thanks Again.
    Grace

  • Months ago I tried to uninstall itunes from Windows 7 after an update failed. I couldn't do it because two files, ShellStreams.resources and ShellStreams.dll were in use. Any suggestions, please?

    Months ago I tried to uninstall itunes from Windows 7 after an update failed. I couldn't complete it because two files (ShellStreams.resources and ShellStreams.dll ) were in use. I'm ready to try again. Any Suggestions, please.

    See Troubleshooting issues with iTunes for Windows updates for tips on repairing the iTunes installation. One of the tools mentioned there, Unlocker, should be able to force delete the files that you are having trouble removing.
    tt2

  • Gui_upload for csv file with numeric n date fields

    Hi ,
      i searched on net on how to use GUI_UPLOAD for csv files using split function but the spilt function requires that the data type of all fields of the internal table should be character whereas in my case there is a numeric n data field too.So kindly help me how to do it.
    One way ppl might suggest that give all the fields as char in the internal n after recieving the data in the internal convert the required fields back to data n numeric n then finally insert to the database but if i have 80 fields u would really dont want to do that as it requires precision to convert it to the same type n length as in the original database for all the fields.

    yeah i guess that would be a bit longer if i m having more no of fields (80) compared to ORACLE where this can be done in a shorter way.
    SO i shall use 2 internal tables here rite?? i mean first one(with all fields as char) for storing the split function values and the other one (with actual data types) .CAN u plz tell me how to convert or cast from one data type to another n while moving values from 1st internal table to another  which way shall i do.
    Thanks for ur help n can u suggest if there is any other method for uploading csv also other than this split method n whether this method is better n faster than others.
    THANX

  • I had two files named graphics and I replaced one graphics file with another which was the wrong one.  Can I undo my replacement?  I move the wrong one, which was on my desktop into another one and that is when it as me if I wanted to replace the file.

    I accidently replaced a file with another.  Can I undo my action? 
    I had two files named graphics.  One was on my desktop and another was within another file called solitarie.  I move the one on my desktop (wrong file) into the solitarie file and was asked if I wanted to replace the graphics file in the solitarie folder (the correct one).  I said yes accidently and then remembered that I had made a mistake.  If I use undo, it only move the wrong file back to the desktop.  Is there an undo of replace?

    Sorry, but's that's why you get the warning. "Replace" means just that - the new file over-writes the old one. There is no undo.

  • Check..numeric and charcter fields.

    Hi,
            iam checking the conditions for numeric and character.if the output is numeric then it can shift to right justify,else if it is charcter left justify.but the following code is not checking for charcter fields.
    data:p_input type c.
      data: pout type string.
      data: htype like DD01V-DATATYPE.
      if htype = 'CHAR'.
        shift htype LEFT DELETING LEADING space.
      else.
        CALL FUNCTION 'NUMERIC_CHECK'
        EXPORTING
          STRING_IN  = P_INPUT
        IMPORTING
          STRING_OUT = POUT
          HTYPE      = HTYPE.
        SHIFT htype RIGHT DELETING TRAILING space.
      endif.
    plz help me..
    thanks

    hi,
    try sth like that:
    parameters p_input(50).
    DATA: pout TYPE string.
    DATA: htype LIKE dd01v-datatype.
    CALL FUNCTION 'NUMERIC_CHECK'
         EXPORTING
              string_in  = p_input
         IMPORTING
              string_out = pout
              htype      = htype.
    IF htype = 'CHAR'.
      SHIFT pout LEFT DELETING LEADING space.
    ELSE.
      SHIFT pout RIGHT DELETING TRAILING space.
    ENDIF.
    Andreas

  • File Adapter - Reading 2 files from sender and one file to receiver

    All - I am looking for a best solution for reading two files from sender and generating one file to the receiver.
    Here is the scenario
    Sender file s - A is a master file. B is a detail file; B will have a one to many records for each record of File A.. that is the relation ship between 2 files..  I am looking for a better solution to
    Example
    Input:
    File A will have a record like "summary1 ABC 1234"
    File B will have a record like "Detailfor Summary1 CDF 8679"
    Output:
    File C shall have a record "consolidatedofSummary&Detail ABC 1234 8679"
    1) read records of master row and detail row from these 2 files
    2) do the mapping to the receiver output format which it is creating for records with some harcoded values and based on the values from master and detail rows of sender file
    if I can accomblish reading sender files and do the mapping to the receiver , assume that mapping to the receiver format would not be cumbersome.
    please help me...
    Thanks

    Hi Gopal,
    Ur approach to the interface is perfect.... Go ahead.
    For selecting multiple files in source use Advanced Selection for files.. and specify the directory paths and also the file name shema...
    This will fetch the 2 files into the integration engine... then u map the 2 source files to one target file(2:1 mapping).
    Specify accordingly the receiver side FCC and test it end to end...
    If u face any prblm post here... some1 will help u out..
    Babu

  • Append two files with added time stamp

    Hi experts,'
    MY Requirement is I need to pick two files from two different FTP Locations and append them to file receiver FTP Location with Added timestamp.
    How to achive this as with append we do not get option of adding time stamp.
    Other thing is I want all the appended files should be there  in Receiver folder means like if we get two files today they should be appended to one and shld be put in Receiver folder then two files for tomorrow and they shoud be appended as a separate file in Receiver Folder.
    How to achive this??
    Regards,
    Nidhi

    Hi Nidhi,
    >>MY Requirement is I need to pick two files from two different FTP Locations and append them to file receiver FTP Location with Added timestamp
    Use BPM and pick the two files
    >>Other thing is I want all the appended files should be there in Receiver folder means like if we get two files today they should be appended to one and shld be put in Receiver folder then two files for tomorrow and they should be appended as a separate file in Receiver Folder.
    Use variable substitution and create the directory and filename dynamically...
    Use Dynamic configuration module in receiver adapter and do as specified in this blog:
    /people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot
    Regards
    Suraj

  • Error when trying to merge two files

    Hi
    I am working with the scenario merging two file using Fork and join construct ie using bpm  I have struck with an error  I have mentioned the error below
    Unable to deliver event 'Received' of object
    Error handling for work item 000000001197
    Parsing error before mapping : unexpected Symbol; expected '<'. '</',entity reference character
    Work item 000000001197 : object CL_SWF_XI_MSG_BROKER Method
    Call Transformation cannot be executed
    Any suggestion how to resolve the error

    Hi
    Thanks for the valuable Suggestions
    The issue was solved by me itself
    Thank you

  • Adding of two files occurances

    Hi ,
    I  am adding two files to one and sending to receiver in this if I get N as occurance of file1 and M as occurance of file2 then I need to get N+M occurance for received file
    for exaple if I have 2 occurance and file 1 and 3 occurance for file 2 at this time I need to get 5 as occurance for receiver file
    for this please guid how to achive this logic
    regards
    Krishna

    Hi,
    Since in your case there are 2 source files coming, so you need to use a BPM with 2 receivers for the 2 source files, one each in one of the branches of a fork, i.e you need a fork step with 2 branches. Then after the fork step , you need to insert a transformation step where you have to do the required message mapping.
    After the message mapping, insert a send step which will send the output of the message mapping to the intended receiver.
    In the message mapping, you need to have 2 source structures for the 2 source files i.e. there should be 2 source message types in the message mapping. Then you need to use the count node function for both the source messages to count the number of occurrences of the parent node in each of them, and then use the add  node function to count the total number of occurrences of the target node and map this to the target side's parent node.
    After that, simple map the child node of both the source structures directly to the child node in the target side.
    MT1                                                                               
    <Node1>                                                                               
    <child1>                                                                               
    MT_TARGET
                                                         <NODE>
                                                           <child>
                                                                                    MT2
      <Node2>
            <child2>   
    Map both <child1> and <child2>   with the same child as shown above for <child1> of MT1 of source         
    That's it. Hope this helps you
    Thanks
    Biswajit
    Edited by: 007biswa on Feb 14, 2011 12:16 PM
    Edited by: 007biswa on Feb 14, 2011 12:17 PM

  • Some unknown file l.s and l.o

    Hi all
    we are working on a Sun server , with solaris 9 installed.
    we found two files l.s and l.o in the root directory....
    we are suspicious about the files
    Right now our connectivity to the server is down, so we were not able to do much about it
    if anyone has come across this file earlier could please help us about it.
    Regards

    Hello.
    the .s file seems to be an assembler program and the .o file the compiled form of the assembler program.
    Take a look at the .s file (it should be readable with any text editor program).
    Martin

  • How do I take two separate non numeric fields in a acrobat form and combine the data to display in a third separate field?

    How do I take two separate non numeric fields in a acrobat form and combine the data to display in a third separate field?

    You have to use custom JavScripting to concatenate the first 2 fields. You cannot use the first 2 calculation options because they force the values of the fields to a numeric value or ignore string values.
    Possible scripts for the 3rd field are:
    event.value = this.getField("Text1").valueAsString + " " + this.getField("Text2").valueAsString;
    or
    event.value = this.getField("Text1").valueAsString.concat( " ",  this.getField("Text2").valueAsString);
    If you do not want change the separator or not show the separator when on or the other field is empty, you will need to add more code to adjust for change.
    The above scripts will also concatenate number because the field values are read as strings and not numbers.
    There is also a generalized user written function to concatenate up to 3 fields with a separator that adjust for missing data.

  • Need to setup Premiere CS6 sequence for two file types with different field orders

    I have a client who has shot video for me using two cameras, one camera was set to progressive, and the other to interlaced upper field first. I need to use both file types in the edit and have been struggling to set up the sequence to get the best look for the end product, a DVD. I have several videos to do for her that were all shot in the same way, so I need a solution!
    I would appreciate help figuring out how to set up this work flow from beginning to end.
    Should I convert one of the files from the beginning so they match field orders before going into a sequence? Or do I just need to do some adjusting of the files once they are in the sequence? Is it just as simple as changing the transcode settings to favor the upper field first? I'm definitely having issues once the video is transcoded in Encore and you can see a lot of jagged edges and lines especially during movement. My client isn't happy and I've tried several workarounds, but to no avail.
    Here are the two file types I have:
    File extension: .MOV
    H.264, 1920x1080, Linear PCM, 16 bit little-endian signed integer, 48000 Hz, stereo
    FPS 29.97
    No Fields: Progressive Scan
    File extension: .MTS (my Mac finder can't read these files, but they are read in Premiere)
    Image Size: 1920 x 1080
    Frame Rate: 29.97
    Source Audio Format: 48000 Hz - compressed - 6 channels
    Pixel Aspect Ratio: 1.0
    Upper Field First
    I am using Adobe Premiere CS 6.0.2
    Encore 6.0.1
    Media Encoder 6.0.2.81
    I am running it on an iMac 27-inch, Mid 2011
    with Mac OS X Lion 10.7.5
    Processor  3.4 GHz Intel Core i7
    Graphics  AMD Radeon HD 6970M 1024 MB
    I've just been setting the sequence to match the .MOV files since they look much better than the .MTS files. I've done the opposite as well, setting the sequence to match the .MTS files and it doesn't seem to help. I've also changed the field order of the files once they are in the sequence by changing the field options and have tried converting the .MTS files in the Media Encoder, but nothing I've done has worked.
    Any help would be so appreciated! The client I have is a photographer, so she wasn't aware of this issue when she first shot these videos. So I have 10 videos with these issues I need to get back to her, hopefully issue free! I'm struggling as an editor because my last job I was using FCP and was working with videographers who knew what they were doing, so I've never faced such problems before. Plus I'm new to the Adobe software. Not a good combination. Please forgive me if I didn't give all the information you need. I will happily respond with whatever more information you may need to help me out!
    ~KTrouper

    I wonder if you could do your edit ignoring any visual issues of the interlaced footage but keeping the different sources separate ( checkerboard edit Vid 1/ Vid 2 )
    Lock it down then export the interlaced part of the edit as a Digital Intermediate.
    Maybe Export the other source as well to the same codec. DI
    Bring them back together in a New Sequence. You wold have to deal with the black spacing.

  • BPM to Check Two files and Connect R3 server

    Two Files are comimg to XI. Both Files having same strucure.
    Sceanaro is File to Proxy
    In File1 ,XiI  search for Record1->Id . if ID found ,then it will connect R3 system and check if ID is present there or not. if not it will create.
    IF Id is present in R3 Server then it will wait  for File2.
    at same time  Xi search for file2 and check whether this ID is there or not.
    If it is not then  Xi will change details in R3 server.If yes then wont modify details of ID in R3 server.
    tWhat will BPM steps Involved in this case.
    Start -> Fork1(Two receiver)-> then what
    plz help me to desing BPM

    Sorry For Confusion
    Can amy one help me to get steps For BPM.
    FILe1->  Contaiss -Hedear(1)-Record(many) Footer(1)
    FILe2->  Contaiss -Hedear(1)-Record(many) Footer(1)
    In Record there is Material Number.
      If File1 Contains 6 Recird and File 2 Contains 4 record.
    When Both file come to XI,
    XI check First Record of File1 and  then check  this Material number for Record 1 agains material Numbers of   all 4 Records of file2.
    If it found same Material Number,in mapping It will update one traget field.
    Edited by: harshalata Gaonkar on Oct 15, 2010 10:28 AM

  • I have got two photos by mail from iPhoto. My friend has put descriptions in the description field. The I got the mail I saw the description below each photo. If I check the photos with Preview they have Exif and JFIF fields but no IPTC field.

    I have got two photos by mail from iPhoto. My friend has put descriptions in the description field. The I got the mail I saw the description below each photo. If I check the photos with Preview they have Exif and JFIF fields but no IPTC field.

    Does you friend use any accented letters in the descriptions?  That might cause it but I don't know for sure.
    Has he run any repair operations on his library, i.e. repairing the database file? Another possible fixe that's easy to apply is the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
        Home/Library/ Preferences folder.
    2 - delete iPhoto's cache folder(s):
    Home/Library/Containers/com.apple.iPhoto
    and, if there is one, the
    Home/Library/Caches/com.apple.iPhoto folder
    3 - reboot, launch iPhoto and try again.
    NOTE: In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key - 10.7: Un-hide the User Library folder.
    For  Mavericks, 10.9,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    The demo version of GraphicConverter can be used to view/check/edit the ITPC fields in an image file after exporting.

Maybe you are looking for

  • It's There a way to find out where my new phone is?

    I ordered new phone, is there any way to track where it is? It shouldn't be here for another few days but just  wanted to see what state it is in. Thanks if anyone knows or doesn't.

  • Error when installing applications

    I am getting a error when installing a few different application. I get this error installing the Citrix Receiver, I get similar errors when installing the Cisco VPN software as well. These are two very important aps for us and need to work on 8.1 if

  • SOLAR_MIGRATION and logical components: what's the behaviour

    Hi All, We have a Solution Manager Dev box and want to transport the contents of our project to Prod using Solar_Migration. In dev we had created logical components. However, Basis team has already created same logical components in Prod it now seems

  • Setting default text editor for sql+ in win2k

    the define _editor=...command in sqlplus doesn't seem to be working for me. Can anyone shed a bit of light on how to make this work under windows 2000 pro? I want to get rid of notepad and replace it with NoteTab which is a much more advanced text ed

  • ABAP Quary in Production

    Dear All, I am the functional person, i dont know ABAP.  I have a doubt, Can we create ABAP Quary in directly Development.  Raj