PO outbound message control - Condition record / PO IDOC outbound user exit
Guys,
I have a system with PO outbound message control sending PO idocs to a unique plant that is set up as a customer in the partner profile. I am using a custom message type and RSEOUT00 to send my idocs with custom message type to this plant. This interface works fine. Now my requirement has changed. I need to send PO's to varying plants (depending on the plant in PO item- all items on my POs belong to same plant).
I noticed that i cannot create condition tables with PO type and Plant combination. (SAP Note 457497 .Q-34).
So I have decided to populate all my PO idocs with a generic receiving partner number '9999' and planning to change this somewhere in a user exit. I found an user exit which looks helpful.
EXIT_SAPLEINM_001 . FM
MM06E001 - Enhancement.
But somehow this exit is not triggered in during PO creation ME21N or change Me22N/Me22.
Is this because I am using a custom message type instead of standard message type ? (I still use the process codes Me10/Me11). Would this matter ? When should this user exit trigger (during creation of idocs in status 30 or when i run RSEOUT00 to sweep these idocs in status 30 to status 03) ? Any tips will be useful.
THanks.
Edited by: Shareen Hegde on Jul 21, 2008 10:13 PM
I found a OSS note -Note 457497 (Q&A # 34), which talks about the same . This was my assumption too. I was just confused because I saw plant(WERKS) in the field catalag of the access sequence.
I don't know what header field I can use to map the plant (I agree its a good idea to do this). But I have decided to do it another way. I will change the receiving partner on the control record depending on the plant in an user exit
- EXIT_SAPLEINM_001.
Thanks for your answer , Mahesh.
Similar Messages
-
PO outbound message control - Condition record
I have created a message control for outbound PO to be sent to one unique customer(actually a plant set up as customer).This works fine.
Right now, I have condition record table set up by just document type this and I have specified this customer number (partner number) there. Now, my requirements have changed and I need to send POs to variable customers(partners), depending on the plant on the PO. So i created another conditional table '925' with Doc type & Plant as key. This does not seem to be queried upon and I am unable to determine the output and create IDOCs. Since plant is at item level, will i be able to use this field in the condition table at all ? Please advice.I found a OSS note -Note 457497 (Q&A # 34), which talks about the same . This was my assumption too. I was just confused because I saw plant(WERKS) in the field catalag of the access sequence.
I don't know what header field I can use to map the plant (I agree its a good idea to do this). But I have decided to do it another way. I will change the receiving partner on the control record depending on the plant in an user exit
- EXIT_SAPLEINM_001.
Thanks for your answer , Mahesh. -
Updating condition records in an outbound delivery
Hi,
I'm trying to update condition records in an outbound delivery but couldn't find any suitable BAPI for the same so I just implemented the BADI 'le_shp_delivery_proc' and called a FM inside the method SAVE_DOCUMENT_PREPARE' which does a call transaction to VL02N to update the condition records. But the problem now is that, when I try to save this delivery, again the same BADI is triggered and goes through the same process of call transaction and thus gives me an error message that the delivery is locked as it indeed is.
Can somebody suggest a way out of this problem. ??
Thanks
AshishHi,
@praveen: I tried the solution provided by you and it worked for me in this context. But it seems this BADI gets triggered every time the delivery is getting saved. So for my test purposes, I'm triggering this BADI in a program, but in actual scenario, the BADI would be called on every sy-ucomm = 'SICH_T' i.e. SAVE. hence, I can't separate my piece of code using this condition.
I'm trying to call my FM(update module in collective run mode) inside this BADI in backgrnd task as a separate unit but this doesn't seem to work.
Any more suggestions?
Thanks
Ashish -
Populating custom idoc thro user exit.
Hi friends,
How can i populate an custom idoc thro user exit?.I haven't done user exit earlier.So Pls let me know in detail.
Thanks and regards.
tharunWhich standard Idoc did you extend? Is it outbound or inbound? Find out what the processing function module is. WEDI is the area menu transaction for all the IDoc related activities.
Once you know the function module, you can then find out what the user exit that is there in it. Then you can go to CMOD and in the menu, click on SAP Enhancements and then click on more options in the selection screen. Enter your function module name in the component there and execute the report. See which enhancement it is included in. You can then create a project in CMOD, assign this enhacement and select the user exit and activate the project.
Next within the function module, in the user exit function module, there will be an include. Double click on it and create upon prompt. After that, it is just your code to fill in the new segment and add it to EDIDD internal table of your function module.
Srinivas -
Hi,
Can you please give some idea or some useful links for information on generating IDocs from User Exits.
For example, while creating a Sales Order I need to trigger an IDoc with the document number, plant, partner functions, and netvalue to the PI system. Please give some inputs for the same.
Regards,
RenjithMake the settings for IDoc processing (partner profiles, ports, destination, etc) fill the IDoc structure and call function module master_idoc_distribute
Also have a look at documentation:
http://help.sap.com/erp2005_ehp_04/helpdata/EN/78/21783151ce11d189570000e829fbbd/frameset.htm -
ALE - How to use outbound message control on HR to Accounting IDOC?
Hi all,
I have a scenario where I want to transfer, using IDocs, Payroll posting to Accounting but I don't want to transfer the posting of Travel trips. Since, on the distribution model, I am using method "AcctngEmplyeeExpnses.Post" which is needed for the payroll, everytime a travel document is posted, the system creates also an IDoc with message type "ACC_EMPLOYEE_EXP". I would like, then, to use the message control feature on partner profile to avoid the creation of IDocs with object type TRAVL. Any help will be appreciated.
Thanks,
MiguelHi FPT,
Have u got the solution for your problem....Actually i am also facing the same problem but for security purpose user should not see the Text what i am sending to the server (the Text will be hardcoded so)....Please can u help me if you know
And can't we send SMS without using MFMessageComposeViewController.Just by clicking the button message should send..Please explain me if you know
Thank u... -
hi
whenever po is created or changed idoc should get triggered, as it is done already,now the issue is the condition records also be included in idoc whenever po is created or changed.
can anyone explain me how to do that?
and what is idoc view and how it is related to condition records.IDOC Views are used for IDoc outbound processing where you dont want to send an entire IDOC out when all you need is just some of the segments.
To improve performance when generating IDocs, you can use views to ensure that only the segments relevant to the current business process are filled with data. Views are therefore only important for IDoc outbound processing
chk the sap doc.
http://help.sap.com/saphelp_47x200/helpdata/en/d5/edf160dcdc11d1890c0000e8216438/frameset.htm
Edited by: Mahalakshmi Padmanaban on Feb 16, 2010 3:02 PM -
Outbound message control for sales order SISCSO.
Hi...
I am trying to generate IDoc for Sales order using message control. The IDoc of type SISCSO is getting generated as per the requirement.
I want to calculate certain things before generating IDocs. I have done the following configurations:
1. A function module 'ZIDOC_OUTPUT_SALES_ORD' is created with interface same as 'IDOC_OUTPUT_ORDRSP'. (Where i am planning to write a code)
2. WE57 where Function module is assigned to SISCSO as outbound FM.
No BD51 is done as it is only for inbound process.
3. New process code ZSO is created through WE41, which is made message independent and FM created in step 1 is assigned to it.
4. In WE20 , this process code is attached to V1 type of application under message control.
Still, my FM is not getting called... I have checked it by applying Break point as well as raising exception in the FM. But still it's not working..
Where am i going wrong??
Can anybody suggest solution??
Thanks,
Audy.Hi,
You need to use FM : MASTER_IDOC_DISTRIBUTE to create outbound idoc.fill the data in the tables EDIDC,EDIDD and generate the IDOC.
check this link:
Re: Master_IDoc_Distribute
and use transaction : WEDI for IDOC configurations.
here you will have all the transactions(step by step) to set the outbound IDOC configurations.
Regards
Appana -
Reg Maintanance of GR Message We03 condition record
When i try to enter condition record for WE03[ GR] its only appearing in MN21, it is not in NACE > ME> condition records , why is that. Where i find MN21 in SAP tree?
Please helpUse transaction SE16 or SE16N and have a look at table NACH.
Cheers,
Nick -
How can I test the IDOC ORDERS05 user exit EXIT_SAPLEINM_002?
We used user exit EXIT_SAPLEINM_002 for changing the PO IDOC values.
When I repeated the PO message to create new PO IDOC, I can not stop the process at the user exit EXIT_SAPLEINM_002. Is there any way to debug the PO IDOC creation at the point of user exit EXIT_SAPLEINM_002, so I can see how the user exit EXIT_SAPLEINM_002 works at run time?
Thank you in advance!
Fisher LiHi
Put a debug point at include ZXM06U02 in user exit EXIT_SAPLEINM_002.
In your PO go to header tab -> output and set ur output type to periodically scheduled job because if that output type is send immediately it will not stop at break point. So select your output type press button Further data and set it to peridically scheduled job.
Then go to we15 give ur application as EF, your Po number and your output type then execute. It will stop at that user exit. -
PORDCR - Inbound IDOC via User-Exit
Hi All,
I would like to create a Purchase Order via an inbound Idoc with a message type PORDCR.
I would like to make use of the enhancement MM06E001 and the function module EXIT_SAPLEINM_002 to populate data segments.
Please advise if this is the correct user-exit to process an inbound idoc.
Any input appreciated.
MeghnaHi Meghanarrao,
IDOC_INPUT_ORDRSP-->PERFORM fill_data_ordrsp-->and find the below user exits for each segment...
List of user exits available for --
EXIT_SAPLEINM_001
EXIT_SAPLEINM_002
EXIT_SAPLEINM_003
EXIT_SAPLEINM_004
EXIT_SAPLEINM_005
EXIT_SAPLEINM_006
EXIT_SAPLEINM_007
EXIT_SAPLEINM_008
EXIT_SAPLEINM_009
EXIT_SAPLEINM_011
EXIT_SAPLEINM_012
EXIT_SAPLEINM_013
EXIT_SAPLEINM_014
EXIT_SAPLEINM_015
EXIT_SAPLEINM_016
EXIT_SAPLEINM_017
EXIT_SAPLEINM_018
EXIT_SAPLEINM_019
EXIT_SAPLEINM_020
IDOC----- Dir -Enhancemnt --Description
ORDCHG -O -MM06E001 -- Purch. Ord. Change
ORDCHG- I -VEDB0001 --Sales Ord. Change
ORDERS- O -MM06E001 --Purchase Orders
ORDERS -I- VEDA0001 --Sales Orders
ORDRSP -O- SDEDI001 --Order Confirmation
ORDRSP -I- MM06E001 --Order Response for Purchase Order "This is the Right one for Purchase order create
IDOC Msg ANSI EDIFACT I O
ORDERS01 ORDCHG 860 ORDCHG X X
ORDERS01 ORDERS 850 ORDERS X X
ORDERS01 ORDRSP 855 ORDRSP X X
IDOC_INPUT_ORDRSP--Function module-BUS2012-Inbound-Purchase order / order confirmation
regards,
Prabhudas -
How to update old records of LIPS used user exit MV50AFZ1
To All Experts,
I have used User Exit MV50AFZ1 and in this user exit i updated the fields
USEREXIT_MOVE_FIELD_TO_LIPS.
LIPS-ETENR = VBEP-ETENR.
Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
How to update old records ? Pl. guide me.
YusufHi Yusuf,
See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
Regards
Eduardo -
Adding lines to segment of Idoc in User Exit ZXEDFU02
Hi!
do I need to maintain Idoc in WE30 if I need to add some lines to one segment in User Exit ZXEDFU02?
Here is my sample code placed in ZXEDFU02 for adding a line, but it is not making an effect:
WHEN 'E1EDP01'.
CLEAR E1EDP26.
E1EDP26-QUALF = '003'.
E1EDP26-BETRG = 777.
or maybe it depends on Idoc that I use in We19?
For example, if Idoc that I use in WE19 for testing my User Exit does not has qualifier 003 in segment E1EDP26... could it be a reason?
Will reward,
Mindaugas.Hi,
Saple Code:
INCLUDE ZXEDFU02 *
data: ls_ka1 like e1edka1,
ls_edidd like edidd,
l_lines type i.
describe table int_edidd lines l_lines.
check l_lines ne 0.
read table int_edidd into ls_edidd index l_lines.
check ls_edidd-segnam eq 'E1EDKA1' and
ls_edidd-sdata(2) eq 'RS'.
ls_ka1-parvw = 'ZC'.
case xvbdkr-bukrs.
when '1000'.
ls_ka1-lifnr = '41010005823845840'.
when others.
exit.
endcase.
ls_edidd-sdata = ls_ka1.
append ls_edidd to int_edidd.
Regards -
Sample code ale/idoc n user exits
Hi
could any one post me two objects each for ALE/IDOCs and Enhancements with explanation about business scenarios ,complete code plz....I do not see any FM idoc_input_deladv1 ,but i see FM IDOC_INPUT_DELVRY
There are user exits related to FM IDOC_INPUT_DELVRY
Check the enhancement : V55K0001
FM : EXIT_SAPLV55K_001
Check the enhancement : V55K0002
EXIT_SAPLV55K_002
Check the enhancement : V55K0003
EXIT_SAPLV55K_003
Thanks
Seshu -
Extend Idoc IINVOIC - User exit ZXEDFU02
Hi All,
I am trying to extend a standard IDocs IINVOIC with custom segment. I am using User Exit ZXEDFU02 populating segment data for FI Document posting .
Every thing is ok but I am facing problem when I am trying to multiple delivery assignments in FI Documents.
Right now FI Document is generating through IDocs and assignment is only one delivery but I want multiple assignment in FI Documents if invoice have multiple Delivery.
Could anybody help me.
Thanx in advance.
Regards,
Vijay Mauryasolved by changing user exit.
Maybe you are looking for
-
How do we send document from one group to other through sharepoint designer??
Hi SharePointers, Looking for help.. Requirement: I have 3 groups 1.requestors 2. Approvers 3. Vendors. In Requestor group, there are so many Requestors and every Requestor logged in to subsite and create a new document in the same DocHub. But No Re
-
My phone isn't being detected by my iTunes. What do I do?
i have no idea why it isn't working can anyone help???
-
Need motion control for a video link antenna
Up to 60 lb parabolic dish antenna. Need 1 degree positioning accuracy (on 30 mi target). Motor postioning signal from an ethernet or Rs232 connection. We will send control signals (in required re-format of lat, long and elevation) converted to contr
-
Events entered in Calendar on iPhone 4S/iOS7 appear in cloud but not on iPhone.
Events entered in Calendar on iPhone 4S/iOS7 appear in cloud but not on iPhone.
-
Inserting logo based on Company Code in Adobe Forms
Hi All, I need to insert three different logos in adobe foms based on company code. Please help. Regards, Sreelakshmi