Data not populating with the Lookup code

Hi All,
Currently I am facing the problem in Production. Somebody has written the below ABAP code in Field routine.
While loading transaction data, they was a lookup in the field routine to get data from Master data.
Select /BIC/YOTLT_TYP INTO RESULT
FROM /BIC/PZCUSTSLS
WHERE /BIC/ZCUSTSLS = SOURCE_FIELDS-KUNAG
and distr_chan =
SOURCE_FIELDS-VTWEG
and division = SOURCE_FIELDS-SPART and salesorg =
SOURCE_FIELDS-VKORG.
ENDSELECT.
But data is not picking properly with the above ABAP Code. Even though the data in the field KUNAG and Info object ZCUSTSLS is same, it is not picking the correct data.
Can you please help why the info object /BIC/YOTLT_TYP is not getting correct data?
Please suggest.
Thanks.

hi,
Check, is there any syntax error for above code ?
if not try below code :
Select single /BIC/YOTLT_TYP INTO RESULT
FROM /BIC/PZCUSTSLS
WHERE /BIC/ZCUSTSLS = SOURCE_FIELDS-KUNAG
          and distr_chan = SOURCE_FIELDS-VTWEG
          and division = SOURCE_FIELDS-SPART
          and salesorg = SOURCE_FIELDS-VKORG.
Thank-You.
Regards,
VB

Similar Messages

  • BAdI /SAPAPO/DM_PO_MNTN - CT_ORDKEY is not populated with the order data for PO Memo

    Dear All,
    I have done enhancement in the ERP system by adding the customer specific field ZZ_RESWK in structure CIFPUORCUS. This field is filled in the ERP user exit EXIT_SAPLMEAP_001, for the Purchase order (category BF & BG) and PO Memo (Category AH).
    Now, in APO I have implemented the BAdI /sapapo/dm_po_mntn, and in the method "Change" I am passing the field zz_reswk to ct_ordkey table field reswk, so to write the field in livecache.
    This set up is working for order category BF and BG. However, when I am transferring the PO memo (Category AH) from ERP to APO, the the BAdI internal table ct_ordkey is having no records. Hence I am not able to write field reswk for the PO memo in the live cache.
    Any one have any idea, why there is not data in ct_ordkey for PO memo ?
    Note: The data transfer from ERP to APO is using IDOC.
    Please Help.
    Regards,
    SC

    Hi,
    If you don't do what I told you, I can not do anything more....
    Your code should look like this:
    loop at it_item into ls_item.
    ls_cust-refobject = 'POITEM'.
    ls_cust-fieldname = 'CATALOGID'.
    ls_cust-REFFIELD1 = 'PO_ITEM'. <b>and not 'POITEM'</b>
    ls_cust-REFVAL1 = ls_item-number_int. <b>and not a fixed value</b>
    ls_cust-container = ls_item-catalogid.
    append ls_cust to ct_bapi_customer_fields.
    endloop.
    For R/3 mapping table BBP_CUFMAP:
    DOC_TYPE = PO
    KEY_TYPE = Z
    CUF_FIELD = CATALOGID
    R3_FIELD = ZSRMCATALOGID
    Rgds
    Christophe

  • Data not populating after DS enhancement

    HI pros,
    i have made Data source enhancement.
    i wrote the code in include program.
    when '0FI_GL_40'.
      CHECK NOT c_t_data[] IS INITIAL.
      LOOP AT c_t_data ASSIGNING <fs_data5>.
      SELECT SINGLE matnr FROM bseg INTO <fs_data5>-ZZMATNR
                             where BUKRS eq <fs_data5>-BUKRS and
                                   BELNR eq <fs_data5>-BELNR and
                                   GJAHR eq <fs_data5>-GJAHR and
                                   BUZEI eq <fs_data5>-BUZEI.
    endloop.
    but the data not populating into the report, the Multi provider is real time
    krish..

    Hi,
    Syntax
    ASSIGN mem_area TO <fs> casting_spec range_spec.
    Effect
    This statement assigns the memory area specified using mem_area to the field symbol <fs>. You can assign a data object or a memory area calculated from the address of a data object. After the assignment, the field symbol refers to the assigned memory area and can be used in operand positions. When used in a statement, it behaves like a dereferenced data reference, meaning that the statement works with the content of the memory area.
    The data type with which the assgigned memory area is treated, depends on the specifications in casting_spec. You can either execute an explicit casting or the field symbol takes on the data type of the data object specified in the assignment. A field symbol to which a memory area is assigned, has this data type after the assignment and behaves like a data object of this type.
    The assigned memory area mem_area must be at least as long as the data type specified in casting_spec and must have the same alignment. If the data type determined in casting_spec is deep, the deep components with their type and position must appear in the assigned memory area exactly like this.
    Use the specifications in range_spec to restrict the memory area that can be assigned to the field symbol.
    You have to assign it back to internal table to modify the content.
    Check in debug mode if you have still doubt.
    regards,
    Raju

  • ICal Week view, Date is not aligned with the Time(schedule) of each date

    Well, just like it says over there (`` ). I've recently been to China for a business trip, and I suppose the different time zone may have had something to do with the problem. Now I'm back home, changed the time zone back to normal, still the iCal shows in the weekly view that the Date on the above is not aligning with the Time and schedule. Any suggetions would be grateful!!!

    Hi,
    i omit the scheduling maergin key in material master,
    the result of MRP is
    BASIC DATES
    Finish 15.10.2009
    Start 14.10.2009
    PRODUCTION DATES
    15.02.2010 14:33:25
    14.10.2009 07:00:00
    scheduling type i planned order is still "backwards"
    so in MD04 it is say that the goods is available at 15.10.2009 same with requirement dates.
    this seem not right.
    it seems that order finish date is not adjusted by lead time scheduling on "today scheduling".
    Is there a way so order finish date is adjusted by lead time scheduling on "today scheduling" ????
    Best regards,
    Freddy Ha
    Edited by: Freddy Halim on Oct 14, 2009 10:01 AM

  • Cisco SPA525g2 Date and time Not Synced with the PBX server

    Hello,
    We have a couple of SPA525g2 phone connected and registered to our PBX server. We were able to configure 3 extensions on different lines of the phone. However, at times we were encountering issues with the other lines configured on the phone. There are times wherein 1  extension configured on the phone is having one way audio issue, but the other extensions configured on the same phone is working fine. and we have to reboot/reset the phone several times for all the extesions configured on the phone to work.
    Also, whenever we reset the phone, the date and time will be way way behind the current date and time, eventhough we have already set the correct date and time before we reset the phone.
    How can we resolve the one way audio issue on 1 or 2 extensions of the phone, while the other extensions configured to it is working fine?
    How can we make the phone sync the date and time with the PBx server?
    Any input and help regarding this issue is greatly appreciated...
    Btw, date and time  issue not sync with the PBX server is just happening on SPA525g2, we have other phones like SPA303, SPA504, and SPA232D/SPA302D. All other phones' date and time is in sync with the server even though we reset them except SPA525g2.
    Thank you very much,

    PeterMacSF,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assi

    Hi ,
    We have enabled context sensitive DFF in Bank Branch Page for HZ_PARTIES DFF , We have created Flex Map so that only bank branch context fields are only displayed in the bank branch page and  as we know party information DFF is shared by supplier and Customer Page so we dint want to see any Bank Branch fields or context information in those pages.
    We have achieved the requirement but when open existing branches bank branch update is throwing below error message :
    "The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assistance."
    this error is thrown only when we open existing branches, if we save existing branch and open then it is not throwing any error message.
    Please let us know reason behind this error message.
    Thanks,
    Mruduala

    You are kidding?  It took me about 3 minutes to scroll down on my tab to get to the triplex button!
    Habe you read the error message? 
    Quote:
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    Check the trigger and it should work again.
    Timo

  • Chart size does not extend with the data

    Hi,
    One of my reports has a horizontal bar and the chart size does not grow with the data. The chart displays fine if I have minimal amount of data. If the data grows, the display is bizarre, it's just messed up. Is there an option I need to set? Please provide your inputs.
    Thanks
    Arch

    Hi,
    I tried with all these options, but no success. I remember I used to get full visible charts initially. Not sure what has happened charts are getting chopped off by at least 50px right and bottom. Interestingly When I export the chart to Excel it looks perfect.
    Any suggestion. Has anyone faced this issues. I am using 11.1.1.5 version.

  • Hierarchies Job Failing  The job process could not communicate with the dat

    Hi Experts,
    We have a group of hierarchies that run as a separate job on the DS schedules. The problem is this when we schedule the job to run during the production loads it fails but when we run immediately after it fails it runs completely fine. So it basically means that if i run it manually it runs but when its scheduled to run with the production job it fails. Now the interesting thing is If i schedule the job to run anytime after or before the production jobs are done. It works fine.
    The error i get is
    The job process could not communicate with the data flow <XXXXXX> process. For details, see previously logged
                                                               error <50406>.
    Now this XXXXX DF has only Horizontal Flatenning and it does not run as separate process because if i have it has separate process it fails with an EOF . So i removed the run as separate process and changes the DF to use in memory .
    Any Suggestion on this problem...

    Thanks Mike.. I was hoping its a memory issue but the thing i don't understand is when the job is scheduled to run with the production job it fails. when i manually run the job during the production job it runs, this kinda baffles me.
    DS 3.2 (Verison 12.2.0.0)
    OS: GNU/LINUX
    DF Cache Setting :- In Memory
    processor       : 0
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 26
    model name      : Intel(R) Xeon(R) CPU           X5670  @ 2.93GHz
    stepping        : 4
    cpu MHz         : 2933.437
    cache size      : 12288 KB
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 11
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc ida nonstop_tsc arat pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm
    bogomips        : 5866.87
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 40 bits physical, 48 bits virtual
    power management: [8]
    processor       : 1
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 26
    model name      : Intel(R) Xeon(R) CPU           X5670  @ 2.93GHz
    stepping        : 4
    cpu MHz         : 2933.437
    cache size      : 12288 KB
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 11
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc ida nonstop_tsc arat pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm
    bogomips        : 5866.87
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 40 bits physical, 48 bits virtual
    power management: [8]
    Thanks for your help

  • Graph Data does not align with the axis label

    Hi,
    The graph data does not align with the axis label when
    datetimeaxis is used.
    http://livedocs.adobe.com/labs/flex3/html/help.html?content=charts_displayingdata_04.html
    (in the using parseFunction property example) when you hover on the
    line graph the values do not align on the labels. Is this a bug?
    Can somebody help me with this.
    Thank you,
    Gautam.

    Hi All
    Thanks for looking into it.
    Actually we have just added a field GJAHR (was missing in the extractor) so that it takes data accoring to fiscal yr. Actually we had a issue that the Business area for a particular vendor 'X' and doc no 'Y' was showing incorrectly (similar to that of yr 2008) but it changed this yr and the extractor was still picking Business Area for yr 2008.
    So we added GJAHR field so that it takes correct Business Area. we have checked in R/3 Extractor checker and it shows correctly.
    But that change has not reflected in BW yet even after replicating datasource.
    I hope i have made you all understand the situation.
    Thanks for your help
    Ishi

  • HT1414 I get a error,(( Itunes could not restore the Iphone on marks Moblie Because the back up was corrupt or not compatible with the iphone that is being restored.))  Help please anyone My pc is Xp is up to date

    I had a very larger OTHER folder in itunes,  Went and ask Apple rep at shop today and he advised to do a restore but 1st back..
    I back up and then did a manual back to make sure it was done.
    Then i started iphone restore, all done and now to restore back up.
    But i get a error,
      ""Itunes could not restore the Iphone on marks Moblie Because the back up was corrupt or not compatible with the iphone that is being restored.""
    My pc runs XP and software is up to date, checked this before back up.
    Disable Anti Virus
    Checked itunes is up to date. Ok
    Unplug all leeds at back of my pc, except key board & mouse/monitor.
    Unpluged Modem.
    Did restore again but get same error message,
    help please.

    Try this -
    http://support.apple.com/kb/TS2529
    Best of Luck

  • Clean-up all data that did not match with the selection.

    Hi Everyone,
    In my requirement I need to  Clean-up all data that did not match with the selection from my internal table lt_cdpos.....in this case wat can i use like.'Refresh' or ' Clear' or 'DELETE ADJACENT DUPLICATES FROM lt_cdpos'.
    Pls suggest me...

    Hi Meenakshi
    Try  delete lt_cdpos where kunnr  NE KUNNR (from selection screen) .
    Before Checking <condition> make sure both comparing field type match with each other.
    You can use FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' for append leading zeros in compare condition before comparing kunnr from selection screen
    Regards
    Parveen

  • HT201274 Can a Sprint Iphone 5 work with T-mobile network? How can one unlock with the MSL code? Sprint is not abiding by the Unlocking Consumer Choice and Wireless Competition Act.  FCC will only enforce if we file more complains.

    Can a Sprint Iphone 5 work with T-mobile network? How can one unlock with the MSL code? Sprint is not abiding by the Unlocking Consumer Choice and Wireless Competition Act.  FCC will only enforce if we file more complains.

    T-Mobile is a GSM network whereas Sprint is a CDMA network. They are incompatible. Sprint is not obliged to unlock a phone that is still under contract. Their phones may not be capable of being unlocked.

  • Vendor master data with the company code

    Hi Friends,
       There is a requirement to pull out all the vendor master records with the company code.  I didnt find any standard report how can i pull the  same plz guide me...
    Thanks
    Prem

    check whether compounded infoobject (Material & Company Code) is available then you could create a report on that.
    Vikash

  • 0FC_OP_01 extractor issues- DFFKKOPBW data not matching with

    Hi All
    We have an issue with the extractor 0FC_OP_01. Our business is comparing the values in
    R/3 report u2013 G/L Account Balance Display (t-code S_ALR_87012277)   with the
    Open Items by GL Account report in BW .(actually these values in the BW report are coming from DFKKOPBW table in R/3) .
    But since august, the R/3 G/L account balance report is not matching with the DFKKOPBW table balances. So bottom line the extractor 0FC_OP_01 is doing something wrong when populating the DFKKOPBW table  which is causing these two reports to be out of balance
    Did anybody face this kind of issue before? Please Advise.
    FYI : We are following the same procedure to populate the DFKKOPBW table as in the below article.
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a9996115-0b01-0010-b2b2-d9de0170a425;jsessionid=%28J2EE3417800%29ID0001499250DB01896329908162586522End
    Thanks
    KPK

    In my case the Cube/PSA data itself is not matching with the R/3 report data. 
    Basically we run a job in R/3 in t-code FPBW with a Date id and Indentification. This job will pull the entries from base table DFKKOP into DFKKOPBW table .Then FRom this DFKKOPBW table data is loaded into PSA/Cube.
    Here in my case the data in table DFKKOPBW itself is not matching with the R/3 report -  G/L Account Balance Display (t-code S_ALR_87012277)) .
    I am following the same procedure to run the JOb in T-code FPBW to populate the DFKKOPBW table as listed in the document at the above link.  Moreover this difference in balances is occuring only starting from August ..Till July the balances in DFKKOPBW tally with the R/3report.
    Please advise ..
    Thanks
    KPK

  • The number of details is not matching with the total count.

    Hi all, again stuck with the code.
    There is a form where i have to populate all the details of few tables in excel & there is a report where i have to make count of all these details.
    The problem here is the number of details that is populated in excel is not matching with the count in report, both have to match. There some problem in code, please help me in matching it.
    The below is the 5 tables with the columns below.
    Tables are ENQACEDTL, ENQACEHDR, ENQACMDTL, ENQACMHDR, ENQACSPEC:
    The Names mentioned below the table's name are Column Names:
    ENQACEDTL
    ENQACEHDR
    ENQACMDTL
    ENQACMHDR
    ENQACSPEC
    ENQNO
    ENQNO
    ENQNO
    ENQNO
    ENQNO
    ENQAMDNO
    ENQAMDNO
    ENQAMDNO
    ENQAMDNO
    ENQAMDNO
    ENGREF
    ENGREF
    QTY
    OFFREF
    MINSL
    ITEM
    EPREPBY
    ITEM
    BRANCH
    EINSL
    FRAME
    DEPT
    RATING
    DEPT
    MTEMP
    TECOLD
    ENGREFTDT
    ENCLIP
    MKTREF
    ETEMP
    THE BELOW IS THE SELECT STATEMENT CODE FOR POPULATING DATA IN EXCEL:
    SELECT ENQACEDTL.ENQNO, ENQACEDTL.ENQAMDNO, ......... (....ALL COLUMNS)
    FROM ENQACMHDR,ENQACMDTL,ENQACEHDR,ENQACEDTL,ENQACSPEC
      WHERE
      ENQACMHDR.ENQNO=ENQACMDTL.ENQNO  AND
      ENQACMHDR.ENQNO=ENQACSPEC.ENQNO  AND
      ENQACMHDR.ENQAMDNO=ENQACSPEC.ENQAMDNO AND
      ENQACEHDR.ENQNO=ENQACSPEC.ENQNO  AND
      ENQACEHDR.ENQAMDNO=ENQACSPEC.ENQAMDNO AND
      ENQACMHDR.ENQAMDNO=ENQACMDTL.ENQAMDNO AND
      ENQACMHDR.ENQNO=ENQACEHDR.ENQNO  AND
      ENQACMHDR.ENQAMDNO=ENQACEHDR.ENQAMDNO AND
      ENQACEHDR.ENGREF=ENQACEDTL.ENGREF AND
      ENQACMDTL.ITEM=ENQACEDTL.ITEM AND
      ENQACMHDR.DEPT=:PROC_DEPT AND
      ENQACEHDR.ENGREFDT BETWEEN :FROMDATE AND :TODATE
      ORDER BY ENQACMHDR.ENQNO,ENQACMHDR.ENQAMDNO;
    THE BELOW IS THE SELECT STATEMENT CODE FOR COUNT OF DETAILS IN REPORT:
    SELECT ALL  ACENQ.ENQACEHDR.DEPT, COUNT(ACENQ.ENQACEHDR.ENQNO) COUNT
    FROM ACENQ.ENQACEDTL, ACENQ.ENQACEHDR
    WHERE (ACENQ.ENQACEDTL.ENGREF=ACENQ.ENQACEHDR.ENGREF)
    AND ENQACEHDR.LOCKE=1 AND
    ENQACEHDR.ENGREFDT BETWEEN  :P_STDATE  AND :P_ENDDATE
    GROUP BY ENQACEHDR.DEPT;
    There is problem in join condition of 1st code that is in the "SELECT STATEMENT CODE FOR POPULATING DATA IN EXCEL":
    Please help me to sort out this problem..
    Thank You.
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    Oracle Forms & Reports Builder 6i.

    As Karthick points out, we cannot help if we cannot see your correct table structures (create table statements) and some example data and expected output (insert statements would be helpful).  You're telling us there's a problem, but we cannot see what the problem is as you've not shown it.  Just saying your query is not working is like me telling you my car is not working, but not telling you what the symptoms are.  You wouldn't know where to start in fixing it.
    Why are you using Oracle 9.2.0.1 ?  Not only has that version been unsupported for about a decade, but 9.2.0.7 was the first version of 9i that was considered 'stable' as versions prior to that were considered buggy.  So you're using an old, unsupported and buggy version of oracle.  Seriously, you need to consider upgrading to a supported version, preferably at least the latest 11g version.
    And what has oracle Forms and Reports got to do with the issue?
    And please explain how you are getting your data out of Excel and presenting it to Oracle to be able to query against it.  Excel does not have "tables", so your question is completely unclear how you are querying the data from Excel.

Maybe you are looking for

  • Sapdb (maxdb) and jdbc adapter problem

    Hi, i have installed this jdbc file: http://sapdb.org/7.4/sap_db_jdbc.htm like in this how-to: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how to install and configure external drivers for jdb

  • Method declaration of an interface

    Hi, Here's an interface definition. public interface Foo { public Object getSomeObject(Object param); What i want to find out is, why do we need to specify a variable reference in the interface? public interface Foo { public Object getSomeObject(Obje

  • Catalog Conversion PSE 6 to PSE 10 Fails but did it?

    I have gone through all of the links regarding problems (repairing the catalog in pse 6, optiizing, reindexing, etc.) and no problems are apparent in pse 6 but I get the "comversion failed..." error when trying to convert to a pse 10 catalog.  Nevert

  • Powershell execution error

    Hi, I am getting the below error while executing PS.Anybody experienced the same? what could be the reason? Best Regards, Arun http://whynotsql.blogspot.com/

  • Voltage and messing up my computer

    I have a mac computer from the United States, but I moved to Europe now and I would like to know if I buy a European mac charger for my mac, will it do any damage to my computer or is it safe. The voltage is different and I dont want to ruin my compu