No IDOC generated when PO is deleted
I have a message control working for PO create and change. I have a user routine that checks if any one of the PO item has a material type 'ROH' and belongs to plant '2001'. This is the only condition when the IDOC has to be generated. This works fine too. But if I delete all the line items of the PO and have a break point at this user routine, the user routine is not triggered and break point is not reached and also IDOC is not generated.It just shows as error in the PO message header with the log
Output type: PO E
Processing log fo
Error : (Red bulb) - No items exist .
Any idea why it is not working for deletion. Is deletion not another change ? And why is my user routine not invoked anytime one of the line items is deleted.
My user routines looks like this..
FORM kobed_911.
DATA: plant_sw(1) TYPE c,
l_bustype(3) TYPE c.
DATA: tab_count(6) TYPE n,
low_werks(4) TYPE c,
low_vend(6) TYPE c,
find_sw(1) TYPE c,
i_name TYPE tvarvc-name,
i_type TYPE tvarvc-type. "IC1K900750 end
DATA: i_flag TYPE c,
i_pot TYPE TABLE OF bekpo WITH HEADER LINE,
l_tab(60) TYPE c, "UN1K914326
l_output TYPE c. "UN1K916720
FIELD-SYMBOLS <prod>. "UN1K914326
break roitmot.
LOOP AT xnast WHERE kschl EQ komt1-kschl AND
objky EQ msg_objky AND
aktiv EQ space AND
vstat EQ '0'.
EXIT.
ENDLOOP.
CHECK sy-subrc NE 0.
sy-subrc = 4.
l_output = 'N'.
* Process only on Create or Change...
IF ( komkbea-druvo EQ neu OR komkbea-druvo EQ aend ) and (
komkbea-bsart = 'NB' ).
l_tab = '(SAPLMEPO)pot[]'.
ASSIGN (l_tab) TO <prod>.
CHECK sy-subrc = 0.
i_pot[] = <prod>.
sy-subrc = 4.
loop at i_pot.
if i_pot-werks eq '2001' and i_pot-mtart eq 'ROH'.
l_output = 'Y'.
endif.
endloop.
if l_output eq 'Y'.
clear sy-subrc .
else.
sy-subrc = 4.
endif.
ENDIF.
ENDFORM. "KOBED_973
* FORM KOBEV_973 *
FORM kobev_911.
DATA: plant_sw(1) TYPE c,
l_bustype(3) TYPE c.
DATA: tab_count(6) TYPE n,
low_werks(4) TYPE c,
low_vend(6) TYPE c,
find_sw(1) TYPE c,
i_name TYPE tvarvc-name,
i_type TYPE tvarvc-type. "IC1K900750 end
DATA: i_flag TYPE c,
i_pot TYPE TABLE OF bekpo WITH HEADER LINE,
l_tab(60) TYPE c,
l_output TYPE c.
FIELD-SYMBOLS <prod>.
break roitmot.
LOOP AT xnast WHERE kschl EQ t683s-kschl AND
objky EQ msg_objky AND
aktiv EQ space AND
vstat EQ '0'.
EXIT.
ENDLOOP.
CHECK sy-subrc NE 0.
sy-subrc = 4.
l_output = 'N'.
* Process only on Create or Change...
IF ( komkbea-druvo EQ neu OR komkbea-druvo EQ aend ) and (
komkbea-bsart = 'NB' ).
l_tab = '(SAPLMEPO)pot[]'.
ASSIGN (l_tab) TO <prod>.
CHECK sy-subrc = 0.
i_pot[] = <prod>.
sy-subrc = 4.
loop at i_pot.
if i_pot-werks eq '2001' and i_pot-mtart eq 'ROH'.
l_output = 'Y'.
endif.
endloop.
ENDIF.
if l_output eq 'Y'.
clear sy-subrc .
else.
sy-subrc = 4.
endif.
Also in my partner profile -message control, i have used Me10 twice, once with the check for change check-box and once without.
This is my cofig of message control tab in Partner profile :
App Messtyp Proc.Code change message
EF Z005 ME10
EF Z005 ME10 X
Thanks in advance.
did you get any resolution to why no idoc is generated when deletion happens?
Similar Messages
-
Generate IDOC DELVRY03 when deletes delivery
Hi guys,
Is it possible to generate an outbound IDOC DELVRY03 when I eliminate a delevery via VL02N???
I manage to send the IDOC DELVRY03 when I create and modify a delivery to a 3rd party system via message control. We really need also to trigger the IDOC when a delivery is eliminated.
Thanks in advance
PCHey,
If is not possible via message control then you might consider workflow to create an IDoc when a delivery is deleted.
Switch on the event trace using SWELS and then delete the delivery. Display the trace using SWEL. If you find any delivery business object i.e. LIKP related events in the trace you could use them to trigger a workflow/task.
The task would have the logic to create an outbound IDoc.
-Kiran -
IDOC generated a very long time
Dear all,
what reason will cause that IDOC generated a very long time ?
My own thinking is this due to one instance's update processes are all running, 'update are all running' is due to 'high lock entries in SM12',
but I don't know how to check what caused 'high lock entries in SM12'.
When I confirm with user about the lock entries in SM12 that users reply they are running some reloated article in system but very slow, so I cannot delete the lock entries also cannot cancel the update process.
so who can tell me which reasons will cause large lock entries in SM12 ?
how to resolve it and avoid it happened again ?
how to find the root cause for large lock entries ?
Best Regards,
MichaelFrom http://astronomy.swin.edu.au/s2plot/3dpdf/ :
Please note: Figure 4 (isosurfaces) can be very slow to load in Adobe Reader for Apple Mac OS X. Sometimes it can take up to 2 minutes ... please be patient!
It is not _so_ slow for me, but still is.
http://asymptote.sourceforge.net/gallery/sphericalharmonic.pdf is also not so fast to load.
Some of my models, where I had to use lots of per-triangle materials to achieve smooth color and transparency demonstrated this problem (but they also did not view exactly _fine_, they made my MacBook noisy due to increase in fan activity ; ). -
Difference between IDOC for creation, change and deletion
Hi,
As per the requirement, an IDOC will be generated for PO, Vendor Masters and Goods receipt when ever a PO or Vendor or Goods receipt is created or changed. How can we identify whether the IDOC has been created for creation or change of a particular thing? Is there any identifier where in we can check whether the IDOC generated is for creation or change?
And also how to identify that a particular PO or VM or GR has been deleted or cancelled?
Thanks & Best Regards,
Phani.hi,
to check the idoc status ie idoc created or changed --use transaction WE05
we02 to diplay idoc
please rewrd points if helpful,
shylaja -
How to relate IDOC generated in sap through ALE from legacy system
Hi all,
can any one tell me how can relate an idoc generated in SAP with the new idoc generated in a legacy system. I mean how could I identify, which idoc is generated for a particular idoc in legacy system and vice versa.
Thanks,
NilanjanaThanks Suhas but when i am getting error message related to partnr profile when pressing this 'TRACE IDOC' button even with idoc in status 53.
Edited by: nilanjana sinha on Nov 11, 2011 8:20 AM -
Hi all,
I have a requirement to send IDoc to external system. When there is no corresponding data, IDoc fields are not filling.
I need to fill blant value to the IDoc fields and send to external system.
I don't have permissions to change the standard code.
My doubt is: Can I fill the empty field in conversions or in any other place, other than coding? is BD64 useful to fill the IDoc field?
Thanks in Adv,
Moderator message - Duplicate post locked
Edited by: Rob Burbank on Dec 9, 2009 9:51 AMHi Kanagaraja,
I am sending the IDoc to PI system using ALE. The IDoc is CLFMAS. when ever a Material Master IDoc generated, subsequent CLFMAS will be generated. The IDoc filling logic is actually in Master_IDoc_MATMAS FM. I think I don't have permissions to change the coding, since its a standard IDoc and some other systems also using the same IDoc generation logic. -
Generating a print doc deletes other docs in the same directory
Generating a new doc into a directory that contains a different doc generated off the same Word template causes the older doc to be deleted.
MY RH8 project is set up with a number of Print Documentation SSLs, one for each chapter of a book, all to use styles from the same Word template. Each SSL has the same Location selected, so all the chapters are by default created in a common directory, where each can be tweaked as needed and later all merged into a single PDF for distribution.
But as each doc is generated, the previously-generated doc in that directory disappears. The newer and older files have different file names, were generated by different RH Printed Documentation SSLs, but the SSLs refer to the same Word template. If a previously-generated doc is still open in Word when I generate the next, then I get the "[template name] is locked for editing" prompt, I select "Open a Read Only copy", it runs on to completion, and then both docs are present in the directory as expected.
The selected output can be doc, docx, or pdf, and always the earlier file is deleted. The selected Location in which the files are created can be inside the project or outside the project. It makes no difference whether the template's properties are set to Read-only.
An obvious workaround is to copy each file out to a different directory as soon as the file is generated. But RH deleting differently-named files is so obviously a malicious thing to do, I can't be working it right. Any ideas?When you generate a Print Doc SSL, a log file with name <ProjectName>.log is created along with the generated word doc(s) in the output folder. This log file contains the name of the previously generated word doc(s). When a Print Doc SSL is re-generated, it read the name of previous word doc from the log file and deletes it and creates a new word doc with possibly new name given in the SSL settings.
So, this is the normal behaviour of RoboHelp and works correctly if each Print Doc SSL is generated in separate folders. But when all the Print Doc SSLs are generated in the same output folder then the current SSL reads the log file of the previous SSL and hence deletes the previously generated word doc in that output folder.
Workaround:
1. RoboHelp has an option to generate individual Word Document for each Chapter, it can be used instead of Multiple SSL with one Chapter each.
2. If you can't use the first option for any reason, then delete the <ProjectName>.log before generating the each Print Doc SSL. -
No request Idoc generated in BI
Hi Experts,
I'm trying to load transaction data into infoprovider but it's not getting through when i check in Moniters it's shows 'No request Idoc generated in BI'.
To resolve this issue then load data, what are the things need to be done.
Please drop your comments.
Thanks in advance.
SiriHello Siri ,
what is the source of the data flat file ,R/3 ?can you check whether data is reaching to PSA?is there any routine between?what you can do is go to the monitor click on the details and then go to the data package and simulate the data .then you will know where you got the problem.
Assigng Points = Thanks in SDN
Thankyou & Regards
Jai -
MM I need to inform in the idoc output when you cancel a document.
hi i need to know how to report on a idoc cancels out when the framework contract and a service entrance (ML81N, ME31K) is that when you cancel a document does not create logistical message. Thanks
I need to inform in the idoc output when you cancel a document OF ml81n migo or me31k, if you create or modify a documet of ml81n migo or me31k , logistical message is generated but not nullify. Is there any way to report a cancellation in the output idoc?
Edited by: juliansantelli on Apr 7, 2011 4:26 PMSorry, good network connection, happily downloaded for 15 minutes before this popup appeared... Staying with iOS 5.1.1 for now hoping Apple can sort it..oO
-
Idoc relations to Shipment gets deleted
Hi ABAP Gurus
We are establishing relation between Inbound/Outbound Idocs to the Shipment Number using the function module BAPI_REL_CREATERELATION with parameters Shipment Number, VTTK, Idoc Number, IDC0, IDC0 in BAPI_OBJECT.
The relation establishment works fine. But after 4 or 5 days, the relation between the idocs and shipments will get deleted and cant be seen in VT03N. We couldnt get any luck while debugging as it always works fine with it and issue comes only after 4 or 5 days.
Can someone throw light on this please. This is very critical for one of the business process.
Any information on this will be appreciated.
Thanks,
Giridhar KommisettyHi Giridhar Kommisetty,
as I remember the relationship is established through some 3 or 4 tables. Try to find out, take a snapshot of the relevant records. When the relationship disappears, check which records have changed in what way. This could give you a hint.
Sorry, no better idea as I never had that.
Regards
Clemens -
Send INVCON02 IODC display 0 IDOC generate through T-code "poit"
Dear Gurus,
when I send inventory data from SAP ERP to SAP ME via MII,I use the sap T-code "poit". In "poit", In "selection parameters:warehouse stock", I fulfill "storage location" , and send, but sap returns "0 IDoc generated".
we tested the basic type "INVCON02" using "we19", it can send IDoc to MII, but could not sucess in POIT.
Anybody can tell me what's the problem, and Is there anybody know other tcode to send INVCON02 to Mii or other system?
It is very appreciate for your help. Thank you advance.POIT is for the generation of Production (Order) related IDocs. POIM is for the generation of Production (Order) related master data downloads. I think there are two ways of downloading Material Master IDocs, but BD10 is the one I remember.
You will probably be amused, but the fastest way to find INVCON t-code is to google it. Here is the one I use most frequently:
[IDoc T-codes|http://www.sap-img.com/basis/important-idoc-transaction-codes.htm]
But remember you have to set up the two sections in ECC or the IDocs will not be either generated or distributed. Go back to the listener configuration document to see where (which t-codes) the modifications need to be made.
I suspect, but don't know for sure, that the instructions are also in the installation/configuration guide for ME.
Good luck,
Mike
Edited by: Michael Appleby on Feb 17, 2011 3:32 PM -
Can we use idoc technique to change or delete the vendor master data?
Hi,gurus,
Can we use idoc technique to change or delete the vendor master data?You know we can create vendor data using idoc CREMAS03 as the receiver adapter,but when change or delete the specified vendor data,must we use RFC adapter technique?
Another question:I found the bapi which creates a vendor master data doesn't have the parameter account group,then we turned to idoc technique.But which adapter should I use when change or delete the vendor data?
Thanks in advance.Hi,
>>>I found the field of the segment of deletion flag at different level,and very appreaciate your help.
yes - LOEVM - but remember this will not delete the record but only mark it for deletion
>>>It's a long time to wait for your new blog,what new and interesting things do you find?
at least 4 new in my head - 2 simple but important and 2 new + I'd also like to write something for XI guys about
BO data integrator which can also work as EAI tool (BTW I know it's ETL) but how knows when they will appear
Regards,
Michal Krawczyk -
I am getting the following error when I'm setting up the mailbox server as I'm currently doing a test virtual machine throughHyper-V, it seems to happen during the transport service phase of the installation which is 7/12
Do i know need a D:\ drive for the mailbox server to work? as in my test i only have a c:\ drive but no d:\ drive
Error:
The following error was generated when "$error.Clear();
if ($RoleProductPlatform -eq "amd64")
$useAttachMode = $false;
$fastInstallConfigPath = Join-Path -Path $RoleBinPath -ChildPath "Search\Ceres\Installer";
$command = Join-Path -Path $fastInstallConfigPath -ChildPath "InstallConfig.ps1";
$fastDefaultDataFolderPath = Join-Path -Path $RoleBinPath -ChildPath "Search\Ceres\HostController\Data";
$dataFolderPath = $fastDefaultDataFolderPath;
if ([System.IO.Directory]::Exists($fastDefaultDataFolderPath))
$useAttachMode = $true;
else
if ($RoleIsDatacenter -eq $true)
$preferredDataFolderPathRoot = "D:\";
if ([System.IO.Directory]::Exists($preferredDataFolderPathRoot))
$dataFolderPath = Join-Path -Path $preferredDataFolderPathRoot -ChildPath "ExchangeSearchData";
if ([System.IO.Directory]::Exists($dataFolderPath))
$useAttachMode = $true;
if ($useAttachMode -eq $true)
&$command -action a -dataFolder $dataFolderPath -silent;
else
try
&$command -action i -dataFolder $dataFolderPath -silent;
catch
$errorMsg = "Failure running SearchFoundation installconfig.ps1 - " + $_.Exception.Message;
Write-ExchangeSetupLog -Error $errorMsg;
&$command -action u -silent;
try
if ([System.IO.Directory]::Exists($dataFolderPath))
[System.IO.Directory]::Delete($dataFolderPath, $true);
catch
$deleteErrorMsg = "Failure cleaning up SearchFoundation Data folder. - " + $dataFolderPath
+ " - " + $_.Exception.Message;
Write-ExchangeSetupLog -Error $deleteErrorMsg;
" was run: "Couldnít attach the data folder 'C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\HostController\Data'. Path doesnít contain old nodes belonging to the system 'Fsis'.".
Warning:
An unexpected error has occurred and a Watson dump is being generated: The following error was generated when "$error.Clear();
if ($RoleProductPlatform -eq "amd64")
$useAttachMode = $false;
$fastInstallConfigPath = Join-Path -Path $RoleBinPath -ChildPath "Search\Ceres\Installer";
$command = Join-Path -Path $fastInstallConfigPath -ChildPath "InstallConfig.ps1";
$fastDefaultDataFolderPath = Join-Path -Path $RoleBinPath -ChildPath "Search\Ceres\HostController\Data";
$dataFolderPath = $fastDefaultDataFolderPath;
if ([System.IO.Directory]::Exists($fastDefaultDataFolderPath))
$useAttachMode = $true;
else
if ($RoleIsDatacenter -eq $true)
$preferredDataFolderPathRoot = "D:\";
if ([System.IO.Directory]::Exists($preferredDataFolderPathRoot))
$dataFolderPath = Join-Path -Path $preferredDataFolderPathRoot -ChildPath "ExchangeSearchData";
if ([System.IO.Directory]::Exists($dataFolderPath))
$useAttachMode = $true;
if ($useAttachMode -eq $true)
&$command -action a -dataFolder $dataFolderPath -silent;
else
try
&$command -action i -dataFolder $dataFolderPath -silent;
catch
$errorMsg = "Failure running SearchFoundation installconfig.ps1 - " + $_.Exception.Message;
Write-ExchangeSetupLog -Error $errorMsg;
&$command -action u -silent;
try
if ([System.IO.Directory]::Exists($dataFolderPath))
[System.IO.Directory]::Delete($dataFolderPath, $true);
catch
$deleteErrorMsg = "Failure cleaning up SearchFoundation Data folder. - " + $dataFolderPath
+ " - " + $_.Exception.Message;
Write-ExchangeSetupLog -Error $deleteErrorMsg;
" was run: "Couldnít attach the data folder 'C:\Program Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\HostController\Data'. Path doesnít contain old nodes belonging to the system 'Fsis'.".
Hi
Most likely for these kind of issues its better you can delete the hyper-v machine and create a new os , ensure all the prerequisite are met and install the Exchange since this is a new installation.
But as a try you can try giving full access to the admin account to the data folder 'C:\Program
Files\Microsoft\Exchange Server\V15\Bin\Search\Ceres\HostController\Data'. which is giving the error and rerun the setup
Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com -
How to find the number of idocs generated for a customer on the basis of his purchase order in a day ?
Dear Friends,
I am absolutely agree with your answer .
But my question is,
Lets say.....
One customer sending X number of purchase orders in a day , so how many IDocs generated on that specific day for that specific customer .
So, Question is , How can we find the no of sales orders(IDocs) generated for the customers on the specific day ?
Hope you all understood my requirement .
Thanks & Regards,
Aditya -
how to repair my macbook pro when i had delete the app store file and know it telling that appstore file has been damage or incomplete and i had the version 10.6.8
so is their is any way that i can solve this matter
Maybe you are looking for
-
Does Time Machine erase previously saved files if, say, photos are deleted from the Macbook upon the next update, or will they be stored indefinately despite the current status of the files stored on the computer? Eg. can I bckup photo files to a Sea
-
Hi I got the following error when starting weblogic 8.1 server: ####<Jul 14, 2004 5:24:15 PM PDT> <Notice> <Security> <sjcpc044> <myserver> <Thread-1> <<WLS Kernel>> <> <BEA-090082> <Security initializing using security realm myrealm.> ####<Jul 14, 2
-
Sales order stock does not exist Message no. M7184
Hello Gurus, I am getting this error while creating post goods issue. "Sales order stock 1000000276 000010 does not exist Message no. M7184" When i do MMBE it shows : Finished Store 2300 Unrestricted use 2000 We are using MTO and in MRP 3 we have s
-
Can you install a SIM card in a iPad model MD510B/AR
Can you install a SIM card in a iPad model MD510B/AR
-
I WANT TO VIEW WESTERN EURPOE AS WELL AS JAPANESE LANGUAGE CHARACTER FROM MY APPLICATION ...SO WHAT SHOULD BE THE STRING FOR NLS_LANG PARAMETER... I CAN SEE JAPANESE ON JAPANESE REGIONAL SETTINGS & I CAN VIEW GERMAN IN GERMANY REGIONAL SETTING AT OS