Problema ao criar Pick via DI em diferentes clients simultâneos

Bom dia a todos.
Gostaria de pedir uma ajuda.
Estou criando um AddOn que ao cliente concluir um Pedido de Venda, o AddOn irá selecionar os lotes dos itens com base em alguns critérios(o primeiro é o lote que esta mais próximo de vencer, o segundo é o uma certa ordem no subnível do deposito e por ai vai...).
Consegui criar o AddOn, tudo funciona perfeitamente, porém o cliente possui uma quantidade muito grande de clientes realizando esses pedidos de venda, e em alguns casos esta havendo uma concorrência, como por exemplo:
     - Vamos supor tenho um item chamado "It", esse item possui 2 lotes no meu deposito, o lote "LT1" e o"LT2".
     - Eu tenho 2 "LT1" que vai vencer em maio, e 5 "LT2" que irão vencer em dezembro. Logo o ao realizar um Pedido de Venda, o "LT1" ira ser selecionado primeiro.
     - Esta ocorrendo em alguns casos que o um client cria um Pedido de Venda e seleciona 1 item do "LT1" e exatamente no mesmo momento um outro cliente esta realizando um outro Pedido de Venda que vai selecionar 2 itens do "LT1".
     Agora vem o problema...
     - Já que eu tenho 7 itens, o SAP deixa eu realizar a venda, e como os dois picking estão ocorrendo simultaneamente minha consulta SQL fala que tem 2 itens "LT1" disponível para seleção, uma vez que nenhum dos dois objetos (um em cada client) conclui o update no Picking, realmente há 2 "LT1" disponíveis.
     - Só que quem confirmar primeiro vai receber os itens, o que realizar o update depois não ira reservar nada, uma vez que outro Pedido de Venda já realizou o Picking daquele lote.
Espero que tenho conseguido repassar meu problema e o cenário, já que a situação é um tanto quanto complexa.
Pensei em uma possível solução:
Estou usando a DI API, será que não seria o caso utilizar a DI Server? Pois pelo que eu li na descrição dela no Help parece ser uma possível solução. No entanto um outro desenvolver SAP disse que ela não iria solucionar.
Então fica aqui meu pedido de ajuda, Será que a DI Server é a solução? Se não, alguém tem alguma sugestão?
Agradeço a todos desde já pela atenção.
Obrigado.

Bom dia Edwaldo,
Acho que utilizar o DI Server não vai fazer diferença. O que poderias fazer é o seguinte:
No momento do update tens de verificar se os lotes seleccionados continuam activos e esta consulta tem de ser efectuada dentro de uma transacção. No caso de os lotes terem sido usados por um outro cliente (que tenha sido mais rápido a fazer o update), notificas o utilizador que os lotes seleccionados foram utilizados e que ele deverá escolher outros lotes.
O importante é que se faça a consulta de lotes disponíveis dentro da transacção que irá efectivamente criar o pick.
Boa sorte.
Best regards,
Pedro Magueija
Message was edited by: Moshe Naveh

Similar Messages

  • JAN 4, 2012  As of the  Upgrade to   Lion,. and the  Email portion, ..   DOES NOT  allow a Video Clip to be sent via the Email  as the I-Photo is not supported by Video Clips  ( Previous Leopard  No problem  clip and drag  via Quick Time Pro to the email

    JAN 4, 2012 
    As of the  Upgrade to   Lion,.   2007  I-Mac  -   the  Email portion, ..   DOES NOT    allow a Video Clips to be sent via the Email 
    as the I-Photo is not supported by Video Clips  ( Previous Leopard ) 
    No problem  clip and drag  via Quick Time Pro to the email  and select the  Attchment  size to send. .  Depending on the 
    Size of the Video Clip  ..      Now  Lion only  Export's   1 size, .   only  and as a result . . teh  File is  TOO  Large and
    Will NOT  send via  E-Mail    ??? 
    Between the   Issue of   the   Lion,  and  Email  issues ,   and  the   Upgrade  of   I-Touch  to  5.1  from  4.2.1 
    as my  Photo  Size is  Huge ..    70,000  +  photos in the  Computer. .   and was   40,000  in the   I - Touch  .. .  
    The  New I-Touch  too will not Load the  same  as Previously  used  on  either  my  16 GB   or  32 GB   Unit . . 
              No Help . ..   so far, ..  as a Apple user   since   1996 ..    I  have Never  experieanced such  frustration    ??? 
                   (  any one have some help  if similar  experiances    ?     thank you     )

    JAN 4, 2012 
    As of the  Upgrade to   Lion,.   2007  I-Mac  -   the  Email portion, ..   DOES NOT    allow a Video Clips to be sent via the Email 
    as the I-Photo is not supported by Video Clips  ( Previous Leopard ) 
    No problem  clip and drag  via Quick Time Pro to the email  and select the  Attchment  size to send. .  Depending on the 
    Size of the Video Clip  ..      Now  Lion only  Export's   1 size, .   only  and as a result . . teh  File is  TOO  Large and
    Will NOT  send via  E-Mail    ??? 
    Between the   Issue of   the   Lion,  and  Email  issues ,   and  the   Upgrade  of   I-Touch  to  5.1  from  4.2.1 
    as my  Photo  Size is  Huge ..    70,000  +  photos in the  Computer. .   and was   40,000  in the   I - Touch  .. .  
    The  New I-Touch  too will not Load the  same  as Previously  used  on  either  my  16 GB   or  32 GB   Unit . . 
              No Help . ..   so far, ..  as a Apple user   since   1996 ..    I  have Never  experieanced such  frustration    ??? 
                   (  any one have some help  if similar  experiances    ?     thank you     )

  • Problem downloading a file via http

    Hi
    I'm just getting started with WLS (sp5) and am having a problem downloading
    a file via http. The document is stored in the main html docs directory and
    whenever I link to it or try to download it directly (eg:
    http://<host>:<port>/myfile.doc) I get the following error in a message box:
    Your current security settings do not allow this file to be downloaded.
    Can anyone point me in the right direction as to where I grant permissions
    to do this - I've tried using the weblogic.security.URLAclFile and adding
    the directory as a weblogic.io.fileSystem (a desperation move, I know).
    Thanks in advance,
    Peter Villiers

    PLEASE IGNORE THIS POST
    The problem was caused by someone (me though I honestly don't remember doing
    it), setting the content security level to high in my web browser which
    stopped this type of download.
    Peter

  • I have an old Mac G5 with OSX 10.5.8  After a crash of my HD, I reinstalled the CS3. At the time of recording I get a window with the message "COMPLETED REGISTRATION" and under "There was a problem sending the informasioni via internet" and still under th

    I have an old Mac G5 with OSX 10.5.8
    After a crash of my HD, I reinstalled the CS3.
    At the time of recording I get a window with the message "COMPLETED REGISTRATION" and under "There was a problem sending the informasioni via internet" and still under three choices to "send back" and "records in a second time "or" never record "and I continue to choose the latter option.
    Another problem is that in Bridge (version 2.0.0.975) I can no longer see thumbnails of RAW files from my Canon 40D that I saw before.
    Should I upgrade ACR? which is the latest version supported on my Mac?
    thank you

    Sergio Bellotto if you keep receiving the registration screen then please try accepting the screen in a different User account.

  • Problem with People Picker field in sharepoint 2013 list

    hi friends
    i have a problem with people picker
    default newitem.aspx
      custom NewItem.aspx
    why the selection option of the people piker is changing
    how can i get the default functionality in custom page
    please help me

    Hello malli.share,
    try to copy source code from newitem.aspx to custom_newitem.aspx (in SPD you can edit custom_newitem.aspx in advanced mode and paste the code).
    Regards,
    Alexander

  • Problem with complete task via email

    Hello,
    I have problem with complete task via email. I found this blog very useful (http://blogs.adobe.com/ADEP/2010/11/how-to-complete-a-task-via-email-using-reply-to-comple te.html), but...
    I set up everything as it’s written in blog mentioned above. When a task is assigned to me, I received an email notification with actions (accept, deny). After that I replied with action “accept”. Then I received email with subject “Errors from LiveCycle ES”:
    LiveCycle ES has tried to process your request and encountered the following error:
    com.adobe.pof.POFRuntimeException: Transaction is not active: tx=TransactionImple ; – nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple )
    This response to your original email
    Subject:RE:Task Assignment – Process: Test/Email_Test. Task 76 has been assigned to you.
    Date Sent:Thursday, October 24, 2011 1:17 PM
    Body:accept
    DO-NOT-DELETE: MTMhMzE0ITMyOA==!
    Attachments:
    In log appeared this following error:
    Caused by: ALC-DSC-215-000: com.adobe.idp.dsc.DSCRuntimeException: None of the Auth Provider could authenticate the user. Authentication Failed
    at com.adobe.livecycle.notification.TaskNotificationServiceImpl.processEmailComplete(TaskNot ificationServiceImpl.java:1157)
    Can you me please? I have no idea what to do to succesfully complete task via email endpoint. Thanks
    Jan Petrla

    Hi Diana, thanks for your reply.
    You're probably right about 2 different error messages.
    To the 1st one: I'm sure that status task is Assigned (to me). I received an email and I also reply on that email.
    To error log: I found out that error log appears when I enable email endpoint on Complete Task service. But I managed to solve this problem. I set wrong user. Now I have here the same user as is written in login-config.xml so log seems to be ok.
    So I created new task and tried to complete it via email. Now I receive email with another error:
    LiveCycle ES has tried to process your request and encountered the following error:
    com.adobe.idp.dsc.provider.service.email.impl.EmailProviderException: Error getting user context
    This response to your original email
    Subject:RE:Task Assignment - Process: WorkFlowClient/Test. Task 92 has been assigned to you.
    Date Sent:Thursday, October 27, 2011 3:05 PM
    Body:Complete
    DO-NOT-DELETE: MTIxMSExNjAzITIwMTE=!
    Attachments:
    And to the last point: email endpoint is set up with TestPOP3@mydomain and user receiving email has jpetrla@mydomain. I use Lotus Notes as email client, I tried another account with gmail, but the result was same.
    Now I really don't know to do...
    Jan

  • Problems with sending IDOC via RFC from Unicode to NonUnic

    Hello
    I have following problem, sending an IDOC via RFC from Unicode to Non Unicode System. IDoc is not sent with error: codepage of receiver system cant determined. receiver destination was: Message no. B1999
    I have tried different options in sm59, but it didnt help.
    Any ideas? The recipient system is rather old, version 4.0

    hey,
    I had a similar experience. I was interfacing between 4.6 (RFC), PI and ECC 6.0 (ABAP Proxy). When data was passed from ECC to 4.6, RFC received them incorrectly. So i had to send trimmed strings from ECC and receive them as strings in RFC (esp for CURR and QUAN fields). Also the receiver communication channel in PI (between PI and  RFC) had to be set as Non unicode. This helped a bit. But still I am getting 2 issues, truncation of values and some additional digits !! But the above changes resolved unwanted characters problem like "<" and "#". You can find a related post in my id. Hope this info helps..

  • Problem viewing Numbers spreadsheet via VNC

    When I connect to an Intel Mac Mini running 10.5.6 using a VNC client and launch Numbers (2.0.2) on the Mini, a valid spreadsheet opens but it looks blank (no cells visible, no data visible). The program is fully functional and if the arrow keys are used to scroll around the spreadsheet, each cell's data is displayed, one cell at a time, in the entry field (at the top of the spreadsheet).
    The spreadsheet display normal, as expected, on a monitor connected to the Mini. The spreadsheet can be printed and saved as PDF. These both show a complete, normal spreadsheet with data in each cell.
    This issue occurs when using either Chicken Of The VNC and JollyFastVNC. Changing display resolution nor number of colors fixes the problem. Changing window size in the VNC client (full-screen mode vs. window mode) does not fix the problem.
    Other applications running on the Mini show no problems when viewed & controlled from the VNC client.
    The VNC client runs on a PowerBook G3/400 running OS X 10.4.11. These computers are connected via a LAN and 10/100 ethernet switch. Personal filesharing is enabled on the Mini; no firewalls are used.
    How can I fix the remote viewing problem with Numbers? Any suggestions would be greatly appreciated.
    Thanks,
    iX

    Hi Gretchen,
    I talked to R&D and they said this is expected behavior. The min/max from the properties from the hypertrend properties reflect what is considered as true and false on the chart.
     Is there a reason you cannot set these to 0 and 1?
    FLash
    National Instruments
    Applications Engineer

  • Problem accessing BBC News via iPad 2, iPhone or web

    Anybody else have these problems - and solutions?
    I have continuous, but erratic problems accessing BBC News either through MacBook Pro, iPhone 3G or iPad 2 (64G Wi-Fi & 3G).  Until a few months ago, I never had problems accessing BBC News via my computer.  Now I often cannot access the site at all, and problems occur whether I use Google Chrome (11.0.696.57)or Safari (5.0.5).  Erratically and less frequently, however, the pages load OK.  I have no problem loading other news websites, e.g. CNN or Al Jazeera.  I live in Spain.  My internet provider is Movistar. I have an ADSL connection of 10Mb (maximum available here) and a wireless router. My MacBook Pro runs OS X 10.6.7. 
    When trying to access BBC through Google Chrome, I get the following message:
    Oops! Google Chrome could not find www.bbc.co.uk
    Try reloading: www.bbc.co.uk/news/
    Additional suggestions:
    Access a cached copy of www.bbc.co.uk/news/
    Trying to access BBC on Safari, I get this message:
    Safari can’t find the server.
    Safari can’t open the page “http://www.bbc.co.uk/news/world/” because Safari can’t find the server “www.bbc.co.uk”.
    Using the BBC app on my iPad 2 and iPhone 3G, sometimes the BBC News loads OK, but more often, again, I  get this message:
    No network connection.
    Sorry, you are currently offline and will not be able to view any updated content.
    N.B.  I am clearly NOT "offline" at this time, since I can open any other web page. 

    I'm trying to access BBC news on iPad 2 through the app.  Have the same problems.
    I wrote to BBC tech support complaining about my access problem through computer, iPhone and iPad.  On May 2, I received the following reply:
    Thank you for your email.
    We are aware that some people in Spain are having problems accessing the
    BBC News site.  We have identified the problem to the Telefonica ISP.
    We have contacted Telefonica and they have advised anyone with problems
    to contact them directly
    Kind regards,
    BBC News website
    Hence, I contacted Movistar (new name of Telefonica) tech support.  I was told they knew nothing about the problem and tried to blame my computer for it.  And then they hang up!!!  Not impressed!!
    I wrote to BBC again on May 19 asking WHO I should contact in Telefonica/Movistar, since their tech support staff claim not to know about the problem  As of today, no reply from BBC, so still very frustrated!

  • TS3899 My iphone has had problems sending e-mail via my 1&1 e-mail account

    My iphone has had problems sending e-mail via my 1&1 e-mail account for the last two days.  I get a 'recipient rejected by the server' message.  I have not changed any settings.  If I change the from address to i-cloud the e-mails go.  Advice please.

    i think you need to contact your email provider - that sounds like an issue on their end and nothing to do with your phone.

  • 6300's problem of transfer file via bluetooth

    Hi..i just got a brand new 6300
    but i've got a problem with transfering file via bluetooth from my laptop to my phone
    sumhow i can transfer file from my phone to my laptop, and i also can transfer image file from my laptop to my phone...
    but a problem occured when i try to send MP3s file from my laptop to my phone...
    i've already succeed to pair my laptop and my phone...but still i can't transfer thoose files...
    can anyone help me??
    please...
    thx a bunch

    Make sure that you have enough phone memory available, even if you are transferring to the memory card.
    When sending files by bluetooth they are transfered (cached) to the phone then the phone transfers them to the memory card.
    Also you should transfer files one at a time.
    If you are transfering lots of MP3's you would be better off using a data cable as it will be a lot quicker.

  • Problems uploading big files via FTP and downloading files

    I've been having problems uploading big files like video files (.mov 12MB) via FTP to my website (small files like .html or .doc I can upload but it takes longer than usual). I'm using Fetch 4.0.3. as FTP. Same problems when downloading files via Bit Torrent. I recently moved to Spain, since then I seem to have the problem. But my roommate with a PC doesn't have that problem. Connecting to internet with Ethernet cable also didn't resolve the problem. I also tested it from a Starbucks coffee connecting to Internet from there but still couldn't upload that 12MB file to the FTP. The security settings for firewall are set to "allow all incoming connections". I didn't change any of my settings so I don't know what the problems could be. I have a MacBook Pro, Mac OS X (10.5.7) Any suggestions? Thanks!

    Welcome to Apple Discussions!
    Much of what is available on Bittorrent is not legal, beta, or improperly labelled versions. If you want public domain software, see my FAQ*:
    http://www.macmaps.com/macosxnative.html#NATIVE
    for search engines of legitimate public domain sites.
    http://www.rbrowser.com/ has a light mode that supports binary without SSH security.
    http://rsug.itd.umich.edu/software/fugu/ has ssh secure FTP.
    Both I find are quick and a lot more reliable than Fetch. I know Fetch used to be the staple FTP program, but it grew too big for my use.
    - * Links to my pages may give me compensation.

  • Problem connecting to internet via non-apple router

    got a bit of a problem with the airport and my router. i have a BTVOYAGER-2110 router to connect to the internet. The router works fine and i can get the internet unsing an enternet cable into the back of the computer. But when i try to connect to the internet using my installed Airport card, it wont work. The Airport card picks up the router and connects to the network no problem. it even says in the system prefs>network menu that i am connected to the internet via arport, but i cannot bring up any pages and it does not work. also i cannot bring the router up in the admin utility. does anyone know how to solve this little problem?

    I'm having a similar problem, (strong signal, definite connection to the network, but unable to access the internet): it is not necessarily a matter of "b" versus "g" protocol. When I go to Europe, most of the time I cannot connect to available wireless networks with the mac, though I can with my pc. So, I'll be interested in whatever solutions people have to your problem as well. In the meantime, go to the following link:
    http://www.macfixitforums.com/showflat.php?Cat=&Board=wireless&Number=782188&pag e=0&view=collapsed&sb=5&o=31&fpart=1
    Let me know if any of those suggestions help you.

  • Problem with Date Picker and wwv_flow_item.date_popup()

    I have a Report based on the HTMLDB How-To “Build Tabular Forms for Multi-Row Operations”
    This is my code:
    select
    X.RRIT_UID,
    X.DOS,
    X.CPT_CODE,
    X.MOD,
    X.DX_CODE,
    X.CHARGES,
    X.UNITS
    from
    (select
    htmldb_item.text(1,RRIT_UID) RRIT_UID,
    wwv_flow_item.date_popup(2,null,RRIT_DATE_OF_SERVICE) DOS,
    htmldb_item.text(4,RRIT_SUBMIT_SERVICE_CODE,6) CPT_CODE,
    htmldb_item.text(5,RRIT_SUBMIT_MODIFIER,3) MOD,
    htmldb_item.text(6,RRIT_ATT_DIAG_CODE,6) DX_CODE,
    htmldb_item.text(7,RRIT_BILLED_CHARGES,9) CHARGES,
    htmldb_item.text(8,RRIT_UNITS,3) UNITS
    from
    RRIT_REPRICE_ITEM
    where
    RRRR_UID = :P5_RRRR_UID
    union all
    select
    htmldb_item.text(1,null) RRIT_UID,
    wwv_flow_item.date_popup(2,null,null) DOS,
    htmldb_item.text(4,null,6) CPT_CODE,
    htmldb_item.text(5,null,3) MOD,
    htmldb_item.text(6,null,6) DX_CODE,
    htmldb_item.text(7,null,9) CHARGES,
    htmldb_item.text(8,null,3) UNITS
    from
    dual)
    X
    My problem is when I run the page and select a date from the Pop-Up calendar I get this error:
    Line 10
    Error: ‘opener.document.forms.0.f02.0’ is null or not an object
    I know it is something to do with data formats and the fact that I do not fully understand the use of wwv_flow_item.date_popup().

    Hi DK,
    It is a WD Java application, Backend is ABAP (MM module).
    The UI is input field, where the context attribute type is Date, So its been changed to Date Picker.
    The problem is when the user runs the WD application in Portal, The calendar format is being changed for some users. That is for few users the Week starts with Monday and for few users the week starts with Sunday.
    I need all the users to have Monday as the First day of the week.
    Please let me know, what will be solution for this.
    Since I haven't done anything in regard to date, it is a simple Date format.
    Thanks & Regards,
    Palani

  • Problem with Date Picker Item

    Hello,
    I'm using APEX 4.2.2.00.11 and I have a problem with the Date Picker. I can't select any day of the second week of the month (it happens for all months).
    Someone know if there are any reason (and how can I solve it) or is an APEX bug?
    Thank you!

    Hi Chimanzee,
    try for : source value
    to_char(sysdate-7,'DD/MM/RRRR')
    hope this helps.
    Leo

Maybe you are looking for

  • How To Remove The Hard Disk On A HP Pavilion Slimline s5220y Desktop

    Hello. I need to replace the HDD on my wife's s5220y pc. This model has a case that only the side panel comes off . Other simular models have a case that the side and bottom panel comes off in a L shape making it easy to remove the HDD. Can someone e

  • Getting Windows 8.1 on Macbook Air 2013 via Boot Camp

    I purchased and downloaded Windows 8.1 Pro Student onto a PC to get the ISO image and did not install it. I saved it to a flash drive and trasfered it to a folder in my Macbook. Now i'm trying to use bootcamp with a 8 gig flash dive to install it on

  • HT204266 is wave burner included with the download of Logic Studio from the app store?

    is wave burner included with the download of Logic Studio from the app store?

  • Align a TextField...?

    Hi Gang, I want to vertically align text in a textField with a border and background color.... I am working on a pure actionscript AS3 project... My textField is rendering fine... I can align the text left center or right.. How can I align the text t

  • I'm new to this please help

    I've been having issues with updating my iPod. I've been trying to manually update my iPod however everytime I attempt to it tells me I have to restore my iPod. I've synced it to my laptop and haven't tried to sync it to anyone else's. Any suggestion