Extract VBAP-EAN11 from Country Dependent field like KNA1-LAND1

Hello,
Is there a way I can extract VBAP-EAN11 from a different field dependent on the country KNA1-LAND1.
Please suggest, if i can extract the data with this condition or any possible conditions with which i can extract VABP-EAN11 dependent on the country field....
Any suggestions would be appreciated!
Thank you

Hello,
Thank you very much for your timely response!
This is the way they had coded to extract the UPC field.
VBAP-EAN11(UPC) = VBAP-PMATN (Pricing Reference Material).
Just to clarify....you mean to say that this field is already extracting the data with reference to Material?
The requirement is...If VBAP-EAN11 = North America then it has to extarct from VBAP=PMATn
Else....It has to extract from VBAP-MATNR.
Can you pelase explain and clarify my confusion....
Does it mean that it cannot exatrct the data seperately depending upon the country?
ANy explonation will be appreciated.
Regards,
Developer.

Similar Messages

  • How can i extract VBAP-EAN11 from a country dependent field?

    Hello,
    Very Good Afternoon!
    Please suggest, if i can extract the data with this condition or any possible conditions with which i can extract VABP-EAN11 dependent on the country field....
    Is there a way I can extract VBAP-EAN11 from a different field dependent on the country KNA1-LAND1
    Any suggestions would be appreciated!
    Thank you

    Hello,
    Thank you very much for your timely response!
    This is the way they had coded to extract the UPC field.
    VBAP-EAN11(UPC) = VBAP-PMATN (Pricing Reference Material).
    Just to clarify....you mean to say that this field is already extracting the data with reference to Material?
    The requirement is...If VBAP-EAN11 = North America then it has to extarct from VBAP=PMATn
    Else....It has to extract from VBAP-MATNR.
    Can you pelase explain and clarify my confusion....
    Does it mean that it cannot exatrct the data seperately depending upon the country?
    ANy explonation will be appreciated.
    Regards,
    Developer.

  • Can I extract VBAP-EAN11 based on the country Field ?

    Hello,
    Is there a way I can extract VBAP-EAN11 from a different field dependent on the country KNA1-LAND1 or any other table where I should be able to extract EAN11 based on the country.
    Please suggest, if i can extract the data with this condition or any possible conditions with which i can extract VABP-EAN11 dependent on the country field....
    Any suggestions would be appreciated!
    Thank you

    Hello Venkat,
    Thank you for your response...
    I did not understand...Can you please tell me in more detail...
    And I tried with this field below and written a sample code...Plz let me know if I can go ahead and use this field.
    Types : Begin of TY_SAMPLE,
              VBELN TYPE VBELN_VA,
              EAN11 type vbap-EAN11,
              LLAND type VKDFS-LLAND,
             END OF TY_SAMPLE.
    DATA : T_SAMPLE TYPE STANDARD TABLE OF TY_SAMPLE WITH HEADER LINE.
        SELECT A~VBELN
               A~EAN11
               B~LLAND
               INTO TABLE T_SAMPLE
               FROM VBAP AS A INNER JOIN
               VKDFS AS B
               ON AVBELN = BVBELN
               WHERE EAN11 =
      LOOP AT T_SAMPLE.
         WRITE : / T_SAMPLE-VBELN, T_SAMPLE-ean11, T_SAMPLE-LLAND.
         ENDLOOP.
    Regards,
    Developer

  • How to make html file from a text field data

    hi!
    I want to know how to make a file with .html extension and the data in this file should be from a text field. like i want to enter some thing in a text area and have to place it in a file on server side in html formate.

    so you told us what you want, but what is your question?

  • Search * from t where a like b case-insensitive ?

    I have a Database-field (CHAR60) that contains text with upper and lower case letters. In my application, the user can search for entries in the DB table using this field, which leads to an SQL statement like this:
    SELECT * FROM table WHERE field LIKE pattern INTO...
    My question:
    If I search for "abc", i won't find entries with "aBc". Can I do a case-insensitive search with SELECT and LIKE?

    Hello Daniel,
    What is the domain(CHAR60) for the field that you are searching for?
    The domain has an attribute called <i>Lowercase</i>, and it is my understanding that so long as this is checked, the data will be stored in the database exactly like it was entered on the screen (case-sensitive).
    If thst is the case with your domain, then I guess you would have to make do with something like:
    SELECT *
      FROM table.
      TRANSLATE : TABLE-FIELD TO UPPERCASE,
                  PATTERN TO UPPERCASE.
      IF TABLE-FIELD CS PATTERN.
    *    Do your processing here...or fill the internal table
      ENDIF.       
    ENDSELECT.
    I know this code has been a bit crude, but this is the essence.
    Regards,
    Anand Mandalika.

  • How To Supress Few Characters From a ZTable field.

    Hi,
      I have a Field called 123-abc in my Ztable. That is driven by concatinating 2 fields from standard SAP Table.
    Now I want to Compare the Ztable-field with one of the field from Standard SAP field like 123.
    How to do that??

    Do something like this -;)
    REPORT ZDUMMY_ATG.
    DATA: T1 TYPE STRING,
          T2 TYPE STRING,
          POS TYPE I,
          LONG TYPE I.
    T1 = '123-ABC'.
    T2 = '123'.
    TRANSLATE T1 TO UPPER CASE.
    SEARCH T1 FOR '-'.
    POS = SY-FDPOS + 1.
    LONG = STRLEN( T1 ).
    LONG = LONG - POS.
    IF T1+0(LONG) EQ T2.
      WRITE 'The Same...'.
    ELSE.
      WRITE 'Not the Same...'.
    ENDIF.
    Greetings,
    Blag.

  • Call http service extract value from person/group field

    Hi
    I have a list that has people or group field.
    When Runing my WF I want to get in to a variable the members of the group that is in people or group field.
    I would like to extract members from group using call http action.
    How can i start?
    which URL should i put in "Enter the HTTP service URL"?
    pleas your help.

    Hi,
    You can use the following URL to extract the members from group
    http://siteurl/_api/Web/SiteGroups/getbyname('groupname')/users
    You can create a workflow variable and extract the value from the people or group field
    Build the URL using as follows
    [%Workflow Context:Current Site URL%]/_api/Web/SiteGroups/getbyname([%Variable: GroupName%])/Users
    For more information how to use the Web Service in workflow use the following article.
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/09/05/how-to-work-with-web-service-using-call-http-web-service-action.aspx
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • Extracting Year from the date field

    Hi,
    I want to extract year from the date field... I've tried following code but got the error
    SELECT to_char(a.A_EXPIRY_DATE,'yyyy') as EXP_YEAR from Table_A a
    Please advice
    Thanks in advance

    user12863454 wrote:
    SELECT to_char(a.A_EXPIRY_DATE,'yyyy') as EXP_YEAR from Table_A aThis should work and returns a string.
    What error did you get?
    maybe your column name is wrong? Is it really A_somthing? This is possible but slightly unusual.
    also possible
    select extract(Year from sysdate) from dual;
    /* with your table and column */
    SELECT extract(year from a.A_EXPIRY_DATE) as EXP_YEAR from Table_A a;Edited by: Sven W. on Aug 18, 2010 6:41 PM

  • Validate From Date field like not 'sunday'

    hi All,
    i have created Leave Apply form where employee apply for leave
    i want to validate Leave From and Leave To field like
    1)when user select a From date is holiday(sunday and others) then error msg is throw.
    2) from date is greater than equal to current date.
    3)to date is greater than or equal to from date.
    so how can i validate these filed using groove Expression...
    Manish

    Is there any solution?

  • Extract Year (only) from Date Field and Display in Text Field

    I need to extract the year from a user entered date field and display the year in a text field. Can someone help me with the correct script to do this?

    Hi,
    that's quite easy to realize with FormCalc.
    In you date fields exit event add the following code:
    textField1 = Num2Date( Date2Num($.formattedValue, "MM/DD/YYYY"), "YYYY")
    Note: This sample assumes that your date field formats the date with "MM/DD/YYYY". You may have to change the pattern to make it work at your end.

  • Extracting sales order from R/3 to BW

    hi frends,
    it is very urgent where i have to extract the data from r/3 to bw and create a report. my tl has give a doc which is not of technical bw doc but it is some functional doc where sd already created a report on that. i want to do the same report in bw.
    how to start with from r/3? whether already setup tables r filled for this sales order datasource i need to do it?
    or else i should ask some body to fill that?
    how to start with out any bw technical doc like which r the datasources i have to use and regarding business content what r the things i have to activate.
    pls help me how to approach. and what r the prerequisites i have to ask them?
    boss it is really urgent..
    help will be highly appreciated.
    thanks & regards\
    rakesh

    Hi venkat,
    Report should have the following multiple selection parameters:
    ·     Company code (Mandatory Field)
    ·     Customer Number
    ·     Project Number
    ·     Sales Person
    ·     Region
    ·     Country
    ·     State
    ·     *Period (Mandatory Field) – User is restricted to enter the period equal to or less than 12 months. If the user enters the period greater than 12 months, the system will generate an error message.
    ·     The report shall give following information in the output
    ·     Company code
    ·     Customer Number
    ·     Project Number
    ·     Element Number
    ·     Product Hierarchy
    ·     Sales Order Number
    ·     Sales Order Line Item
    ·     Order Type
    ·     Sales Person
    ·     Region
    ·     Country
    ·     State
    ·     Period
    ·     Month wise order values displayed for
    o     Technology
    o     Vertical Market
    o     Driven application
    o     Product
    o     company1 Application
    o     Equipment OEM
    o     Project Type
    o     Flow Parts
    ·     For each of these, Order values are broken into the following account assignment group
    o     External
    o     Within Business
    o     Within Department
    o     Within Division
    o     Within Other company
    pls help me boss how to start with

  • How  to Extract sales document from r/3 ?

    hi,
          How to extract sales data from SAP R/3 considering all fields of data in different tables?
    Thanks & regards,
    Gopi.

    Hi Gopi,
    It depends what data you need to extract but most of the data would be available in following tables :
    Sales
    VBAK - Header
    VBAP - Item
    VBPA - Sales Document Partner
    Shipment
    VTTK - Shipment Header
    VTTP - Shipment Item
    Delivery
    LIKP - Delivery Header
    LIPS - Delivery item
    Customer
    KNA1 - Customer Master
    KNB1 - Customer Master (Company Code)
    Cheers,
    Vikram
    Pls reward for helpful replies!!

  • How can I use Automator to extract specific Data from a text file?

    I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
    How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
    Example of File Contents:
    Link Time =
    DD/MMM/YYYY
    Random
    Text
    161 179
    bytes of CODE    memory (+                68 range fill )
    16 789
    bytes of DATA    memory (+    59 absolute )
    1 875
    bytes of XDATA   memory (+ 1 855 absolute )
    90 783
    bytes of FARCODE memory
    What I would like to have as a final file:
    EXCEL COLUMN1
    Column 2
    Column3
    Column4
    Column5
    Column6
    MM/DD/YYYY
    filename1
    161179
    16789
    1875
    90783
    MM/DD/YYYY
    filename2
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    MM/DD/YYYY
    filename3
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • Error in running Extract Definition Upload from Data File concurrent.

    Hi all,
    Am trying to upload the 834 Extract Layout from the data file by running the concurrent program, Extract Definition Upload from Data File.
    After running this concurrent program am getting the Extract Layout definition with Record layout and Data elements within it.
    But some record layouts has the changes at their repeating level in that.
    Please suggest me how do i get the same repeating levels for the record layouts when i move the 834 benefit extract layout definition
    from one instance to another instance.

    Hi,
    We have exactly the same error in IBolt. This error happens sometime and we don't find the reason.
    IBolt has been upgraded to Version 3.1 SP1 and a fix has been developed by the support. After installation, we've work hardly during 2 days for testing all the flows by the customer without having this error.
    Ibolt works as a service and when this error occurs, the service stopped and must be restarted.
    In our flows, we have put a delete of the observer.dll file just before the rest of the flow but it doesn't solve the problem.
    Deleting the directory can be temporarly a solution but the error come back another day.
    Each time the SBO client or DTW is started, the %temp%\SMS_OBJ_DLL directory is created...
    When you just delete the observer.dll file and leave the rest of the directory like it is, the file is re-created when you start and log to SBO. I would say that this file is a copy of another file observer_800178.dll (800178 depending of the version of SBO yoi have). 800178 corresponds to SBO 2007 A PL 42.
    Do you have more information since your post has been send ?
    Thanks in advance for your help.
    Best regards.

  • Error while extracting the data from R/3

    HI all,
    I am extracting HR data from R/3 system.
    It is throwing the below error message.
    Error: Splitting error User Exit employee/date/hrs 00100545 20071106 2.000
    I am not sure how to rectify this error. Is this issue with data in R/3? Does it have to be corrected in R/3?
    Do let me know what can be done.
    Thanks in advance,
    Maddy

    Hi Maddy,
    can you tell me if there are any routines used to split the employee, date and hrs fields data?
    If so check for the code is with our systez errors?
    What is the source system?
    what is the data source?
    Did you check for how the data exist in the source? goto RSA3 and check for the data how it look like for the employee , date and hrs records.
    Regards
    KP

Maybe you are looking for

  • Error message when mapping to a network drive of a DFS share on Windows 7

    Hi, We are getting the following error when mapping to a network drive of a DFS share on Windows 7: "The mapped network drive could not be created because the following error has occurred: A specified logon session does not exist. It may already have

  • As Top 10 perguntas e respostas mais frequentes(FAQ) - Janeiro 2009

    1- Como instalar o SAP Business One Client? Este problema pode ser causado por falta do componente: "SQL Native Client". Para solucioná-lo, por favor leia Nota SAP 1015229. 2- Como colocar o número do Pedido de venda numa Factura? 2.1- Criar um UDF a

  • InDesign CS5.5 won't install

    I recently purchased a new computer and tried installing my cs5.5 design standard suite.  Photoshop and Illustrator installed properly, but InDesign repeatedly fails installation, even after several system restarts.  This is the message i recieved: E

  • Myself Source system problem after System Copy

    Hi All, We recently did a system copy (Production -> Dev). After the logical system rename is done, the myself source system is showing up as a External SAP system, in source system tree under SAP instead of BI.  I'm not able to restore/activate it. 

  • Workaround: 16-bit installers in Vista

    If some of you have some legacy programs you like to use that used to work in XP but don't install in Vista, here's a tip.  The installer for your program may be 16-bit and Vista is an all 32-bit OS.  There are many programs that have 16-bit installe