Handling Obsolete Materials in a Retail Scenario

Hi,
We have in our Retail Scenario ECC 6 where some Trading Materials have become obsolete and our requirement is to block further procurement and at the same time materials need to be sold.
a)     For material blocking we can use field X_Site status 01 in Basic View in Material master for this purpose. If we use this indicator it is not allowing      
to sell the goods.
b)     A report required to indicate availability of these obsolete materials in various  sites/plants 
Require your valuable inputs.

It sounds like you want something like
SQL> create table test(
  2    value number,
  3    mod_user varchar2(100)
  4  );
Table created.
SQL> create or replace trigger t_mod_test
  2    before update on test
  3    for each row
  4  begin
  5    if( updating( 'MOD_USER' ) )
  6    then
  7      null;
  8    else
  9      :new.mod_user := NVL( sys_context('USERENV', 'OS_USER')
10                           ,user );
11    end if;
12  end;
13  /
Trigger created.
SQL> ed
Wrote file afiedt.buf
  1  create or replace trigger t_mod_test
  2    before update on test
  3    for each row
  4  begin
  5    if( not updating( 'MOD_USER' ) )
  6    then
  7      :new.mod_user := NVL( sys_context('USERENV', 'OS_USER')
  8                           ,user );
  9    end if;
10* end;
SQL> /
Trigger created.
SQL> insert into test values( 4, 'xyz' );
1 row created.
SQL> update test
  2     set value = 1
  3        ,mod_user = 'abc'
  4   where value = 4;
1 row updated.
SQL> select * from test;
     VALUE MOD_USER
         1 abc
SQL> update test
  2     set value = 2
  3   where value = 1;
1 row updated.
SQL> select * from test;
     VALUE
MOD_USER
         2
JCAVEDDBC64\jcave
SQL>Justin

Similar Messages

  • Retail Scenario

    Hi,
    in a retail scenario the price of material changes very frequently, how do we model it?. Please brief me the important considerations on the R/3 and BW side.
    Ravi.

    Hi Priti,
    Please go through these links
    1) /people/rajesh.sarin2/blog/2008/06/06/realization-gaps-in-it-retail-scenario
    2) mapping of retail scenario
    3) Re: mapping of retail scenario
    Thanks Regards
    Santosh Deepak

  • How to handle pipeline materials in SD

    Hi all,
    we have a scenario in our current project which deals with sale of power as per consumption.
    in MM we can handle this through Pipeline materials but iam not sure how can we handle this pipeline materials in SD.
    Looking for a good response..
    Will be rewarded and highly appreciated ...

    Hi Vamsi,
    Sent mail
    Regards
    Srini

  • Exception handling in synchronous proxy - web service scenario

    Hi Gurus,
    I have a synchronous scenario in which SAP is sending a request via XI using SOAP and receiving a response back. As part of this scenario, I am consuming standard web service APIs provided by the third party.
    Since, every request has to contain the connecting user id and password provided by the third party, I am sending/receiving messages without SOAP envelop (achieved by clicking 'Do not use SOAP envelope' checkbox in SOAP Receiver Communication Channel).
    For this scenario, we are including the user id and password in the request message using XSLT mapping and the request number using simple message mapping.
    The fault message of the web service is being mapped to the fault message created in XI under Fault Message Types.
    The interface mapping page has got 3 tabs, one each for Request message mapping, Response message mapping and Fault message mapping.
    When I trying to test a failure scenario by giving an incorrect request number(since this is the only input parameter in gthe request message apart from user id and password), it is throwing up "MAPPING">EXCEPTION_DURING_EXECUTE error.
    Actually, for such requests, I am getting a proper fault response back from the third party which I can see in XI (in moni) as response to my request but when I am looking at the message in moni in SAP, I am only seeing "MAPPING">EXCEPTION_DURING_EXECUTE. Even I can see the exception in the trace section of my response in moni in XI.
    My feeling is that the fault message mapping is not getting executed at all.
    I also thought to do a 2:1 multimapping in which, the target side will contain the response message type created in XI but the source will contain two messages, i.e. Normal response message structure provided by third party and Fault message structure provided by third party but I am not sure whether this is possible without using BPM.
    Please suggest the best way to resolve this issue.

    The Fault message raised from 3rd party service, is structured as follow ??
    HTTP/1.1 500 Internal Server Error
    Content-Type: text/xml; charset="utf-8"
    Content-Length: nnnn
    <SOAP-ENV:Envelope
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP-ENV:Body>
           <SOAP-ENV:Fault>
               <faultcode>SOAP-ENV:Server</faultcode>
               <faultstring>Server Error</faultstring>
               <detail>
                   <e:myfaultdetails xmlns:e="Some-URI">
                     <message>My application didn't work</message>
                     <errorcode>1001</errorcode>
                   </e:myfaultdetails>
               </detail>
           </SOAP-ENV:Fault>
       </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Take a look here:
    /people/jin.shin/blog/2007/05/21/handling-web-service-soap-fault-responses-in-sap-netweaver-xi
    and to this standard document:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/5946db5f693912e10000000a42189b/content.htm

  • Error Handling in File to Multiple IDOC Scenario?

    Hello Experts,
    My scenario is file with Multiple records and I want to send it to SAP system.If there will be 10 Records in my file I need to create 10 IDOC in Target system.
    I can use below of the two options.
    1) File to Multiple Idoc (1.N Mapping)
    2) Using BPM
    3)Directly place the file in SAP application server and process it via ABAP Program.
    However I am not clear in which option error handling will be more effective.Please suggest.
    Basically I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
    Also I will be doing this scenrio for transaction data with huge size (1 Million Records).Which approach will be more effective in this case.
    Thanks,
    Pushkar

    Hi Patel,
    I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
    when working on graphical mapping, the target structure is created when there are no errors in all records of source structure.
    suppose if we have validation error in 9th and 10th record, then we can not process the first eight records and inturn we can not store the two error records in XI for further.
    i suggest you the third option, you can directly place the file in SAP application server and process it via ABAP Program.
    this is far better because you can do more customizations as you have to deal with millions of records.
    Regards,
    Pradeep A.

  • How to handle duplicate messages in J2SE File scenario

    Hi,
    Is there any way to handle processing of duplicate messages in J2SE File adapter scenario?
    Here is the scenario ,
    Steps :
    1. Engine picks up a message and checks the size of it.
    2. Before reaching the checking interval , the adapter(file) was terminated unfortunately.
    3. J2SE engine was restarted.
    4. Previous file was again picked up and sent as the first time with one msgID.
    5. After sometime, same file was picked up with a new msgID
    6. System gets only ONE configrmation that file has been successfully transfered.
    So we find two messages containing the same file.
    I have checked in J2SE doc, there is a parameter called "db.exactlyOnceErrorInPendingState" which is related to DB.
    Is there any similar parameter to handle the duplicate messages in FIle Adapter scenarios of J2SE Engine.
    Please help me in this regard as it seems to be a new thing in J2SE AE.
    Regards,
    Soorya.

    Hi swarup,
    But using OS command how can we rename /archive that file?
    Module means any Custom Module or wat?
    Following are the channel configurations used in File To File scenario.
    File Sender :
    version=30
    mode=XMB2FILE
    XI.httpPort=58201
    XI.httpService=/test
    XI.ReceiverAdapterForService=test_rcv
    file.numberOfMessageTypes=1
    XI.Interface=MI_test_out
    XI.InterfaceNamespace=http://nestle.com/test
    file.type=BIN
    file.targetDir=/test_inb
    file.targetFilename=unusedbutreq
    file.writeMode=fromHeader.ext
    file.createDir=0
    file.nestleName=initial
    file.writeMode=fromHeader.ext
    file.nestleEXT=test
    file.nestleFileOverwrite=False
    File Receiver :
    version=30
    mode=FILE2XMB
    XI.TargetURL=http://localhost:58201/test
    XI.NestleTargetURL=http://localhost:58201/test
    file.type=BIN
    file.checkFileModificationInterval=300000
    file.pollInterval=300
    file.processingMode=archiveWithTimestamp
    file.archiveDir=/test_out/arc
    XI.QualityOfService=EO
    file.numberOfMessageTypes=1
    file.messageAttributes=name
    XI.SenderService=test_snd
    XI.Interface=MI_test_out
    XI.InterfaceNamespace=http://nestle.com/test
    XI.ReceiverService=test_rcv
    file.nestleBadMsgDir=/test_out/bad
    file.sourceDir=/test_out
    file.sourceFilename=.
    Do the needful help asap.
    Regards,
    Prakash.

  • Inventory Management in Retail Scenario

    Hello Gurus,
                     We are implementing BI7 and SAP IS retail. I have tried using 0IC_C03 cube but it is not giving correctresults. Can anyone suggest for implementing inventory management in retauk scenario.
    Regards,
    Baljit Singh

    Hello OJ,
               Thanks for your reply/ I have also tried 0RT_C36 cube. Values are still coming negative. I have used 2LIS_03_BX instead of 2LIS_40_S278.I have also choosen industry sector as retail. I have also checked BW in tcode BF11. There is no data as of now in 2LIS_40_REVAL. But still the values are negative and not matching with stock in ISR systems.I have also done compression and marker updates the way we do for 0IC_C03.
    Can you please advise. Is there any special config for ISR scenario.
    Regards
    Baljit Singh

  • Block posting for Obsolete Materials in COPA

    Hey All
    We ahve a ascenario in which we post some expenses to the materials via FI transactions FB50. Nothing hits the stock accounts in these transactions. Only thing is while posting we assign the Materials to the PA segment so that we can run reports in COPA for the materials
    Now some materials have been discontinued and the material plant status have been set to NOT to perform any transaction related to supply chain. BUT when posting through above FB50 trasnaction the system does stop it from posting and derivation for the obsolete material. I have even tried setting the deletion flag in MM06 for the material. Is there any solution to this so that we can stop material from posting
    Thanks
    Ankur

    Hi
    In my opinion, you need to use exit COPA0002 and put a check.. I dont think its possible in standard system
    Another way is to change the description of these materials and add Text " DO NOT USE" so that users are aware while using it
    br, Ajay M

  • Distribution of MC with  CHRMAS and CLSMAS in Retail scenario

    Hi guys,
    I know that I can use WGSE or  BD91/BD92. for distributing Merchandise Categories (MC). But is is possible to trigger  CHRMAS and CLASMAS with change pointers scenario in case of Retail system. I have set change pointers in BD50. But they are not triggered when using wg22  .

    Solved by my self. Do not forget to trigger BD21 to process change pointers.

  • Block obsolete materials in VB11

    Hi,
    My client wants to know the blocked materials while creating material determination .They need a warning message while creating in VB11.Could you please advice me how to block obsolete material while going for material determination or please advice me is there any user exit to do that. Your valuable input would appreciable if provided ASAP.
    Regards,
    Deva

    Hi
    In the Material Master Data on Basic Data 1 Tab X-Plant Matl Status field, you can select the relevant Option and mark the Material as either Blocked or Obsolete.
    When you try to create Material determination with VB11 and try to use the material, the system wouldnt allow you to use the blocked material and will throw an error message stating "material is Blocked".
    Best Regards

  • MRP controllers for Obsolete materials

    We have a requirement to check MRP controller for certain values that will identify an obsolete material. 
    Has anyone done this?
    Is there an easy way to do this?  Custom?  Config?

    Hi,
      use the transaction MMD7 to display the materials for a particular MRP controller..
    Thanks,
    Naren

  • An error Handling in Asynchronous Proxy to JDBC Scenario?

    Hey,
    In my scenario, we'll send data from erp to third-party database.
    If it occurred an error while saving the data to database, I want to manage that error in ERP.
    Is it possible to make this scenario with asynchronous proxy to JDBC?
    If it was possible, how should do I?
    Thank you,

    Also
    go thru the following thread (Similar problem discussed)
    Re: RFC to JDBC response
    regards
    krishna

  • How to handle Responce in FILE to RFC Scenario

    Hi All,
    In file to RFC[sync] scenario...
    Sender side we are using FTP server. Many folders are there .Data is located in folder1 . File adapter picked the data and forwarded it to XI. RFC adapter processes the data.If RFc adapter sends responce , how can we store this responce in Folder2 in FTP server  .Is it possible without BPM .Is this Possible with in a single scenario . If so pls explain the IR and Id steps.

    Hi,
    Why dont you use dynamic configuration for both Directory 1 & Directory 2???
    I had  a similar scenario where we have to define a directory name based on source file names. The sample code is as follows. You can modify this as per your requirement. Let me know if you have any issues.
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    and
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    conf.put(key, arg)
    String fileName = conf.get(key);
    if(filename.equals("file1.txt")){
         conf.put(key1, Directory1)
    else
         conf.put(key1, Directory2)
    return "";
    Warm Regards,
    Gouri

  • Handling Obsolete Variants in 4.6C - ECC6 Upgrade

    I read all the Notes on obsolete Variants. Then I ran RSVCHECK and found 6,000+ of them needing repair.
    Is there any reason not to just run RSVARDOC wide open and fix them all at once?
    Thanks for your insight,
    John

    Hi John,
    I'm not a variant guru - but do you have the ASU Toolbox installed following the upgrade. It may help you out.
    Regards,
    Sheryl.

  • Mapping of retail scenario

    Hi all,
    We are trying to map functional requirement of a Retail supply chain to R/3 system .
    Can any body help us on following ponits
    1. Demand Plan
    How is it generated in sap?
    what are the configuration settings
    We need to provide reports on total duration the product has been at each node of supply chain
    2. How is a product placement schedule made in R/3
    how the manufacturer allocates products to the retail shops , where and how the customisation is done.
    3. Inventory plan
    How can we track the material after it is sold to retailer at it’s various Retail stores
    We need to give details like duration for which it has stayed at the retail store
    Retail store’s with zero inventory versus total no of retail stores for each sku
    4. Transportation Plan
    How is transportation planning done for each product for a  year/month/week
    Regards
    Nitin Bansal

    can any body reply to this

Maybe you are looking for

  • Apple 23 cinema display and G5 computer

    Hi, I've just purchased a G5 computer and own an old 23' Apple cinema display. Unfortunately, my ACD DVI cable isn't compatible with the G5 DVI port. Since I am living abroad and will sooner come to the States. Does it exist a specific cable at apple

  • Using Apple TV with external DVD drive on Macbook Pro

    I am unable to play DVDs from my external hard drive attached to my Macbook Pro via the Apple TV on my Samsung smart TV. What am I doing wrong. Thanks.

  • Implement Database Audit on Oracle applications DataBase

    Hi , I have faced an issue . there are someone log in to the database and with sql statement through sqlplus he delete a record I need a plan to implement an audit for this issue and a security method to apply to prevent this issues and if it applica

  • ALV Grid Display in Loop.

    Hello experts, I need your help to resolve the issue. I have made a report: On selection screen, Release group and release strategy is taken in select options: SELECT-OPTIONS : S_FRGGR FOR T16FS-FRGGR,                                S_FRGSX FOR T16FS

  • SetMedia problem with MediaPlayback - external MP3s

    I'm using the MediaPlayback component to play an external MP3 file, and it's working fine, EXCEPT that when it first loads it plays the first part of the clip for a split second, then stops and re-plays it -- regardless of the autoPlay settings that