Confused with ME_PROCESS_REQ_CUST PROCESS_ITEM

Hi All,
I'm using ME_PROCESS_REQ_CUST PROCESS_ITEM and check to validate a line item.
Lets say i have 2 line items
I entered line item 1 and hit enter then i'm getting the custom messge that i put in process_item and in this method i'm setting a global variable
w_ch_failed = 'X'.
now i keyed line item 2 details and hit enter then i'm getting the custom messge that i put in process_item and in this method i'm setting a global variable
w_ch_failed = 'X'. " Which is already set to 'X' because of line item 1
Now i fixed the line item 2 and the value is reset of w_ch_failed = ' '.
Now i'm saying in check method
MOVE w_ch_failed TO CH_FAILED.
1) My problem is that i'm able to post the Purchase Req even though the line item 1 has an error because w_ch_failed is blank because of correct line item 2
Below is my code
PROCESS_ITEM
  include mm_messages_mac.
  DATA : L_ITEM TYPE MEREQ_ITEM.
  DATA : MARA TYPE MARA.
  clear : l_item,mara.
  data :lv_obj         TYPE REF TO object,
        lv_attr        TYPE string,
        lv_aktyp       TYPE aktyp.
  FIELD-SYMBOLS : <fs_lcl> TYPE ANY.
  check im_count = 1.
  CALL METHOD IM_ITEM->GET_DATA
    RECEIVING
      RE_DATA = L_ITEM.
  check l_item-werks = 'XYZ'.
SELECT SINGLE  FROM MARA INTO MARA WHERE MATNR = L_ITEM-MATNR AND
                                KPSTAT = 'XYZ'.
IF SY-SUBRC EQ 0.
  IF L_ITEM-MATKL IS INITIAL.
mmpur_message_forced 'E' '00' '398' 'Item ERROR' l_item-BNFPO.
   w_ch_failed = 'X'.
else.
  clear w_ch_failed.
    ENDIF.
ENDIF.
CHECK METHOD
MOVE w_ch_failed TO CH_FAILED.
Thanks
David

You need to remember FAILED status for each item. You should do that by creating a internal table with EBELP and FAILED status.
READ lt_checks assigning <lfs_check> with key ebelp = im_curr_ebelp.
if sy-subrc eq 0.
  clear <lfs_check>-failed.  " if its good item
*  <lfs_check>-failed = 'X'. " if its not a good item
else.
  append initial line to lt_Checks assigning <lfs_check>.
  <lfs_check>-ebelp = im_Curr_ebelp.
  clear <lfs_check>-failed.  " if its good item
*  <lfs_check>-failed = 'X'. " if its not a good item
endif.
In method CHECK, read this table with any FAILED = 'X', if found, set the CH_FAILED.
read table lt_checks transporting no fields with key failed = 'X'.
if sy-subrc eq 0.
  CH_FAILED = 'X'.
endif.
Regards,
Naimesh Patel

Similar Messages

  • New bug in 8.02 - regions confused with each other

    So, I just updated to 8.02, and loaded up a recent project that was half finished (bad idea).
    Now I have some strange bugs going on that I never had before, and they are basic issues.
    My audio regions keep getting confused with each other.
    I have an audio region that I can't open in the sample editor. When I double click on it, the sample editor will bring up the last region I edited, not the new one. I've re-named the region, deleted it and re-added it to the arrange window, but this region will not open in the sample editor.
    I can see it in my media bin, and preview it there, and it plays in my arrangement no problem, but I can't get it to open in the sample editor. In fact sometimes when I click on it, with the media window open, I can see another sample being 'selected' in the media window instead of the proper audio region.
    Scott

    finally i find someone else with the same prob, o already post into apple.com too
    yes here the same, bug new in 8.0.1, cause on logic 8.0.0 all works fine (except some click noise when you pre-listen a file in autoloop)
    however here what i can say to you (it's 3 days i'm studyng this cause i make a massive use of ultrabeat)
    - no matter both power pc / intel soffer of this bug
    - i try to update to leopard from my 10.4.11 (same bug) tryin a new os installation (same bug), tryn without audio card and driver (same bug)
    so i really don't know how to solve it, cause there are only few people that have this problem
    big mistake and big mistery

  • Socket Programing in J2ME - Confused with Sun Sample Code

    Hai Everybody,
    I have confused with sample code provided by Sun Inc , for the demo of socket programming in J2ME. I found the code in the API specification of J2ME. The code look like :-
    // Create the server listening socket for port 1234
    ServerSocketConnection scn =(ServerSocketConnection) Connector.open("socket://:1234");
    where Connector.open() method return an interface Connection which is the base interface of ServerSocketConnection. I have confused with this line , is it is possible to cast base class object to the derived class object?
    Plese help me in this regards
    Thanks in advance
    Sulfikkar

    There is nothing to be confused about. The Connector factory creates an implementation of one of the extentions of the Connection interface and returns it.
    For a serversocket "socket://<port>" it will return an implementation of the ServerSocketConnection interface. You don't need to know what the implementation looks like. You'll only need to cast the Connection to a ServerSocketConnection .

  • Confused with document life & account life

    I have a doubt regarding archiving
    I think in archiving projects especially for finance module
    there are lot of customization settings to be done form the functional side before Archiving , for example Document life ,Account life... etc
    I have a doubt weather those customization settings needs to be carried out by archiving consultant or
    the FI functional consultant?
    Can any one tell what is the difference between Secondary indexes and Archive Indexes in FI ?
    i am  really confused with the Archiving projects..... can any one help me
    Moderator message: not related to ABAP development, please post again in the appropriate SDN forum, always search for available information before asking.
    locked by: Thomas Zloch on Sep 23, 2010 11:41 AM

    Patience is a virtue.
    Rob

  • Confused with HD-SD

    Hi,
    All the sudden I am confused with my searches on this forum and would appreciate clarification
    I am presently working on a HD project (from HD clips and HD stills).
    If I want to get the best out of it, should I use only BluRay burning or would it be OK to use HD setting and burning with DVDSP on a "regular" DL disk (the compressed project will be over 7 GB ?
    Should I understand that if I use HD setting with DLdisks only a HD compatible DVD player will be requested ?
    will a Bluray player play the HD-DL fine ? or will a bluray disk be requested on bluray player ?
    As you can see I just got really confused ...
    Thanks in advance
    Ivan

    No doubt this stuff can be confusing. Hopefully I'll be able to clear a few things up.
    You shot and edit an HD project in HD. Now you would like to create a DVD correct?
    You have 2 options for DVD
    1. Standard Definition DVD authored in DVDSP.
    2. Blu-Ray DVD. You'll have to purchase a burner.
    If you are on the newest FCS then you can author and burn a Blu-Ray DVD inside of Compressor. If you are on the previous version then you need another application to author and burn Blu-Ray like Toast or Adobe Encore.
    You made mention of HD-DVD. That format is dead and won't play on anything other than your Mac or a couple specific HD-DVD players that haven't been in production for years. If you look in the DVDSP preferences you can choose which kind of DVD to burn SD-DVD or HD-DVD. Choose SD whenever you are using DVDSP.
    Blu-Ray players play Blu-Ray DVD's and SD DVD's. It will not play HD-DVD.
    How long is your project if the compressed (m2v) files are coming in at over 7GB?

  • SS9 CC5.6 compiler bug - algorithm count confused with struct member

    Found some code that fails to compile in CC 5.6
    CC: Sun C++ 5.6 2004/07/15
    #include <algorithm>
    using namespace std;
    struct A {
      int count;   
    struct B
      struct A *a;
    int main(int argc, char **argv)
      struct B *b = 0;
      // This line fails to build, any other operator is ok
      if ( b->a->count < 50 )
      return (1);
    }Fails with error :
    "c56_algorithm_bug.cpp", line 21: Error: Unexpected ")" -- Check for matching parenthesis.
    "c56_algorithm_bug.cpp", line 22: Error: "," expected instead of "{".
    "c56_algorithm_bug.cpp", line 22: Error: Illegal value for template parameter.
    "c56_algorithm_bug.cpp", line 22: Error: ")" expected instead of "{".
    4 Error(s) detected.The compiler is getting confused with the use of the count struct member vs the count algorithm. Changing the < to a > fixes the problem.
    Using CC5.3 works fine as well as all other compilers we use (gcc 3.4, mipspro 7.4, VC 7.1)
    Anyone seen this ?
    - mark

    This bug has been fixed in the C++ 5.6 compiler. I'm not sure if the fix is in the first patch which is about to be released. If not, the fix definitely will be in the next patch.
    The workaround is not to use
    using namespace std;That using-declaration is a pretty big hammer, and often results in conflicts with user code, compiler bugs aside.

  • Again confused with delta update.

    Hello experts
    I am confused with delta update as usual
    I have one Infocube in which last data pull was on 29.11.2005.
    If now again I run delta load then will it pull entire data from 2005 to 2008 or I should delete all data from cube n do full load??
    Kindly explain
    Regards
    Swati

    Hi Swathi
    LIS EXTRACTION
    T.code - :MC18 – create field catalog
    1. Characteristic Catalog
    Application-01-Sales and Distribution, 02-Purchasing, 03-Inventory
    Controlling, etc..
    Catalog category 1. Characteristic catalog, 2. Key figures catalog 3.
    Date catalog
    Select characteristic catalog and enter, click on characteristic select
    the source table and it will be display the relevant source field and
    select the source field, copy + close, copy.
    Save, similarly create key figures catalog
    T.code : MC21 – create infostructure
    Example –
    Inforstructure : S789
    Application – 01
    Choose characteristic select the catalog, select the fields, copy +
    close
    Choose key figures catalog select the key figures ,copy + close, save
    and generate
    T.code – MC24 – create updating
    Infostructure : S789
    Update group : 01- Sales document, delivery, billing document ,enter
    Select the key figures click on rules for key figures give suggest
    rules, copy save and generate
    Click on updating (activate updating)
    Select the infostructure set periodic split 1. Daily, 2. Week, 3.
    Month, 4. Posting period
    Updating –1)No updating,2)Synchronous updating (V1), 3)As synchronous
    updating (V2), 4)As synchronous updating (V3),
    T.code – LBW0 - Connection of LIS Information structures to SAPBW
    Information structure : S786
    Select the radio button-Setup LIS environment and Execute.
    Select the radio button-Generate data source and Execute.
    For Delta update:
    Select the radio button-Generate updating and Execute
    Select the radio button -Activate / deactivate and Execute.
    T.code – SBIW – Display IMG (implementation guide)
    Setting for applications specific data source – logistics – Managing
    transfer information structure – setup of statistical data – applications
    specific setup of statistical data –perform statistical setup – sales.
    Choose activity
    Setup – Orders, deliveries, billing
    Choose the activities enter the infostructure (S789), give name of the
    run, date of termination, time of termination, No. of tolerated faulty
    documents. Then execute
    T.code – RSA3 – Extractor checker
    Give the data source name eg. 2LIS 01S789 and execute, result will
    get some records
    Go to BW side replicate data source – Assign infosource – Create
    infocube – Create update rules – create infopackage and schedule the package
    with initialize delta process.
    For delta update :
    In R/3 side
    T.code – MC25, set update (V1) or (V2) or (V3)
    T.code – LBW0, choose generate updating and execute then choose
    activate / deactivate and execute
    BW side - create infopackage and schedule the package with delta
    update.
    First time if your scheduling the infopackage -in R/3 side T.code :MC25
    -Udating set to No update,insted of selecting the update V1,V2,V3.
    If your doing the Delta update:in R/3 side T.code :MC25-Updating set to
    either V1 or V2 or V3. and the to T.code :LBW0 -Select the radio button
    Active/deactivate and Execute.
    and schedule the infopackage with delta update.
    Regards,
    Chandu.

  • I purchased an IPAD2 for my special needs daughter.  She only currently understands lowercase letters only and gets confused with the uppercase letters.  Is there a way to change the keyboard to display lowercase letters?

    I purchased an IPAD2 for my special needs daughter.  She only currently understands lowercase letters only and gets confused with the uppercase letters.  Is there a way to change the keyboard to display lowercase letters?

    There is no way for the keyboard itself to display only lower case letters. It doesn't display lower case letters at all for that matter.
    When you are using the keyboard - The other issue that you will have is with the shift key. Even with auto caps turned off you can still type capital letters if you tap the shift key and if you double tap it by mistake - it will turn into all capital letters so also turn off Caps Lock in the keyboard settings.
    Other than that, there is no way to ensure that you can type in lower case.
    Maybe an external bluetooth keyboard would be a better solution but I don't use one, and I have never even seen one in person so someone else will have to verify that for you.

  • Confusing with AddJavaFile in jdev.conf

    I am confusing with the format in AddJavaFile in jdev.conf:
    for example:
    AddJavaLibFile ../../BC4J/lib/bc4juixtags.jar
    AddJavaLibFile ../lib/batik-xml.jar
    their absolute paths respectively are:
    /usr/jdeveloper/
    /usr/jdeveloper/jdev/
    could anybody give me some help?
    Thanks a lot!
    Peter

    sorry for my unclear question.
    my installation is <jdev_root> = /usr/jdeveloper/
    From the file, I got:
    AddJavaFile ../../BC4J/lib/bc4juixtags.jar
    it seems to me it equals : jdeveloper/jdev/BC4J/lib/bc4juixtags.jarActually it should be:
    /usr/jdeveloper/BC4J/lib/bc4juixtags.jar
    and not:
    /usr/jdeveloper/jdev/BC4J/lib/bc4juixtags.jar
    another line is:
    AddJavaFile ../lib/batik-xml.jar
    it seems to me it equals : jdev/lib/batil-xml.jarCorrect.
    there is unconsistency here (I may be wrong)Actually it is consistent. The jdev.conf file contains pointers to where JDev can find other components which it depends on. In the two cases which you point out, the first is part of the RT layer of BC4J (which is also shipped in iAS) and the second is the batik XML parser from Apache.

  • My confusion with logs in iAS 6.5

    Hi everybody,
    I am very much confused with the log files in iAS 6.5. Bit lengthy, but Kindly go through this slowly and help me in solving the same.
    (1) In the settings -> Control Panel -> Services window, i have enabled "Allow Service to Interact with Desktop".
    In the admin tool, i have checked "Enable Server Event Log" check box. I have also enabled the option "Log to console" and selected the message type to be "All Messages".
    When i did this, i was able to see the logs as console(command prompt windows). When ever i run a jsp/servlet/EJB containing System.out.println() statements, i was able to see the std out messages in the KJS.exe console. What should i do these std out messages in a file rather than a console?
    (2) In the settings -> Control Panel -> Services window, i have enabled "Allow Service to Interact with Desktop".
    In the admin tool, i have checked "Enable Server Event Log" check box. I have also enabled the option "Log to File", gave the file name as "logs\ias" and selected the message type to be "All Messages".
    When i did this, i saw the following files created under the installdir\ias6\ias\logs.
    ias.10817
    ias.10818
    ias.10819
    ias.10820
    ias.10821
    (10817 - kas port, 10818 - kxs port, 10819 - kjs port, 10820 - kcs port, 10821 - cxs port)
    Since, these log files contains the port number of the above mentioned processes, i expected them to be the log files of the processes with corresponding port numbers. For example, ias.10819 to be the log of KJS process, since its port is 10819. Is it correct?
    If it is correct, i am not able to see the System.out.println()
    messages in this file, though it appears in the console(as mentioned in point 1 ). Why is it?
    I want to see all the Std Out messages (which appears in KJS console) in a log file. What should i do for that?
    (3) In the iPlanet Application Server Administration guide (Page 90), i found a way to log to a file on Windows platform. As per that document, i changed the IAS_KASLOGFILE from 0 to 1 in the System Variable and restarted the system. It created the file by the name, KAS.log in the installdir/ias6/ias/logs.
    Now i was able to see the KAS process's console messages in this log file. But there is nothing written to the KAS console. Why is it?
    (4) What is the difference between the log file ias.10817 (created as per in point 2) and KAS.log (created as per in point 3)?
    thanks and regards,
    desigan

    Hi,
    Can you please let me know the resource from where you have got this information ?
    Thanks & Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • HT201342 I'm still confuse  with this iCloud mail. I have 2 device which is iPhone and iPad, why every time I receive a mail from my iPhone it doesn't show on my iPad? Can you maybe help me out here thank you

    I'm still confuse  with this iCloud mail. I have 2 device which is iPhone and iPad, why every time I receive a mail from my iPhone it doesn't show on my iPad? Can you maybe help me out here thank you

    The iphone and ipad must be connected to the same icloud account.  Are you by chance using different IDs to connect from each device?

  • I am confused with the adobe photo shop album starter 3.0!

    Hello, I have always been interested in storing pictures on my computer via my scanner or digital camera, but now I want to organise them using adobe.. However it has left me more confused.. since I downloaded it, it automatically imported pictures...but when I click on my regular photo files on my desk top, it does say adobe photo shop at the top of the picture- so does this mean it is already imported into the adobe?? as i am confused with what photos I have got where now.
    In other words, I wanna make sure that all my pictures on my computer are in adobe. How do I do that ?
    Excuse the daft question but I hate computers sometimes!
    Thanks

    Hi again Colin(and Jim), if I got the wrong end of the stick (which it appears I did) then I humbly apologise for being oversensitive. I have had some miserable experiences in newsgroup forums before now and witnessed relentless bullying on occasions and so I may respond in a defensive matter automatically. Thank you for setting me straight :-)
    On a different tack, I wonder if you could help with another PSASE problem I have. When I go to print a number of prints on one page (eg.four to an A4 sheet-which it resizes to fit for you) there seems to be a loss of quality in the images. Is there a way of adjusting the resolution within the program, or do I need to adjust them within photoshop first ?

  • Hi we setup ISE in our lab and planning for prodution with 2000 user endpoints. We have SNS appliance but confused with ISE lice

    Hi we setup ISE in our lab and planning for prodution with 2000 user endpoints. We have SNS appliance but confused with ISE license bt plus and advanced..Please advise.

    Plus:
        Bring Your Own Device (BYOD)
        Profiling
        Endpoint Protection Service (EPS)
        TrustSec SGT
    Advanced :
        Bring Your Own Device (BYOD)
        Profiling
        Endpoint Protection Service (EPS)
        TrustSec SGT
        Mobile Device Manager (MDM)
        Health Compliance and Remediation
        Posture
    Base license is Perpetual

  • Confusion with Image/BufferedImage

    Hello,
    I'm trying to write an applet that displays and modifies local image files (gif). I'm running into some confusion with the different image APIs and drawing methods though.
    I want to read the files, display them, and then create new images from sections of the original ones. I wrote an applet that succesfully loads and displays files as Image objects, but then I saw that BufferedImage has a method getSubImage() that I thought I could use to create the new images.
    But my problem is that even without manipulating the images, I can't get them to display as BufferedImages. Here's the code, where I try to display the series of images twice, once as Image, once as BufferedImage, but the BI come out as black squares.
    public class myapplet extends Applet
         BufferedImage[] img = new BufferedImage[NUM_PICS];
         Image[] im = new Image[NUM_PICS];
         public void init()
              Toolkit t = Toolkit.getDefaultToolkit();
              Graphics2D bg;
              MediaTracker tracker = new MediaTracker (this);
              for(int i = 0;i<NUM_PICS;i++)
                   try
                        im[i] = t.getImage(gen.getLogo());
    //the getLogo method is from a class I wrote -
    //it returns a string with a filename
                   catch(Exception e)
                        System.out.println("ERROR: "+e.getMessage());
                   img[i] = new BufferedImage(70, 70,BufferedImage.TYPE_INT_RGB);
    bg = img[i].createGraphics();
    bg.drawImage(im[i],0,0,this);
         public void paint(Graphics g)
              Graphics2D g2 = (Graphics2D)g;
              for(int i=0;i<NUM_PICS;i++)
                   g.drawImage(im[i],10,i*70,this);
                   g2.drawImage(img[i],null,80,i*70);
    Any help would be great.

    You have to use the MediaTracker before drawing the image onto the BufferedImage:
    try {
    im[i] = t.getImage(gen.getLogo());
    tracker.addImage(im[i], i);
    tracker.waitForID(i);

  • Confusion with wiring - Cat5, Cat5e, Cat6?

    I am moving into a new build house and have some confusion with the wiring.
    So BT have wired from outside the house to a master socket inside the house.
    Inside the house I have an extension and there is a Cat5 or Cat5e cable (am not fully sure which) connecting the Master and the Extension together.
    I am interested in wiring Cat6 from the extension to other rooms.
    My Infinity HomeHub will be connected at the extension (as the Master socket has been unsuitably positioned).
    So my questions:
    1. What type of cable is usually run from outside the house to the Master socket? Does this determine the maximum speeds my home will be capable of?
    2. If I do not change the Cat5/Cat5e cable running between the Master and Extension to a Cat6 (keeping in mind that I am running my HomeHub from the extension) will I only ever achieve a maximum of Cat5/Cat5e speeds across my entire network?
    3. Do I need to change the cable between the Master socket and the Extension to a Cat6 cable?
    4. Alternatively, would I be better to ask the engineer to convert the extension into a Master?
    So confused!

    Hi unidentified,
    If you're having FTTC Fibre broadband (eg BT Infinity upto 40mbps or upto 80mbps product) then the external line will be a standard "copper" cable running into the property and terminating at the master socket. The external line is not a cat5 or cat6 cable, just a standard "Copper" phone line.
    If your having FTTP (Fibre to the Premises) (eg BT Infinity 160mbps or BT Infinity 300mbps product) then the external phone line would be a fibre cable that would enter your property.
    Cat5e cable can acheive upto 1000mbps and cat6 is capable of 10-Gigabit speeds in some cases, however at the moment you won't be needing anything like that. However in both cases having the DSL (in your case VDSL or VDSL2) signals down the Cat5e or Cat6 cable to an extension socket will likelky reduce the speed slightly.
    You may be best keeping the HomeHub or Openreach VDSL modem connected to the Openreach Master socket and having the Cat5e or Cat6 cable running to a router/switch or computer.
    Hope that helps
    jac_95 | BT.com Help Site | BT Service Status
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Try a Search
    See if someone in the community had the same problem and how they got it resolved.

Maybe you are looking for

  • What is the SMALLEST SGA for 10g you can have on Windows OS?

    Hi all, We are setting up a server that will be used for some DBA classes. Each student will get their own database instance to play with. For this reason, we want to try and create the SGA's with the SMALLEST possible amount of memory, so that we ca

  • How and when to create a fact table

    hi every1, I am new to oracle and specially to Data Warehousing. I am using OWB 11g on windows XP. I have created the dimensional for a database, now i am in the implementation phase. i have the following questions. 1. I don't know how and when to cr

  • Logic Pro X - Record in time - Logic moves audio automatically out of time

    I have a mac book pro OSX Version 10.8.4 2.3 Ghz intel core i5 processor 8 GB memory 1333 MHz DDR3 Latest version of Logic Pro x When I record an audio track using the mac book pros built in microphone, I sing or play an acoustic part in time (yes in

  • GET PERNR skips some employees in the report

    Hi all. This is my first post in this forum. I'm beginner in ABAP programming and I've got a issue in my report that I don't succeed in solving it. In the first line of the source code, within the start-of-selection event, I use the GET PERNR command

  • Get a document's content

    Hi everyone, I'm currently using LiveCycle ES 8.0 and am receiving a TIFF image as an input document (Document variable).  I need to take this document, get it's content (the image itself), and convert it to a String variable that I can store into a