Generating an idoc on deletion of shipping doc
Hi
I want to generate an idoc when we delete the shipping doc from VT02N. How do i do this? I am new to ALE and idoc .
thanks
sankar
Hi
The Basic use of Idoc is to pass the information from one system to other.
We might have exchange information between customer or vendor
if you want to know the deleted document information , you can make use of work flow.
Regards
KRSNA
Similar Messages
-
Generating an IDOC while deleting the shipment
Hi All,
We have to generate an IDOC while deleting a Shipment.Is there any option available to create an IDOC while deleting the shipment? or any program is available.
Thanks in Advance.
Rajarajan.Hi ,
You can use the user exit
USEREXIT_DELETE_DOCUMENT
User exits in the program MV45AFZZ
and in this user exit you can write code to trigger your IDOC. You can use any of the flowwing IDOC
SHIPMENT_CHANGE01 Change Shipment
SHIPMENT_CREATEFROMDATA01 Create Shipment
SHIPMENT_CREATEFROMDATA02 Create Shipment
SHPMNT01 Shipment
SHPMNT02 Shipment
SHPMNT03 Shipment
SHPMNT04 Transport
SHPMNT05 Shipment
Cheers
VJ
Some points would be nice if it helps..
Message was edited by: Vijayendra Rao -
Hi
we need find for any user exit or BADI available in the process of deletion of shipping doc through VT02N. I wasn debugging the transaction when delete happens .
In the program MV56AF0T in the form transport_loeschen there is a form create_badi_instance. In this form there is a piece of code
CALL METHOD cl_le_badi_manager=>get_instance
EXPORTING
im_exit_name = 'LE_SHPMNT_EXTENSION'
null_instance_accepted = 'X'
CHANGING
ch_if_ex_le_badi = gi_badi_shpmnt_extension.
does it mena there is a badi with the name LE_SHPMNT_EXTENSION? I went through the sap note 623533 also. In this note there is a mention of this BADI.
I went to se18 and entered this in BADI def fields, but the system says it does not exist, we are in ECC version.
please clarify.
thanks
sankarsolved
-
Generating idoc when deleting shipping doc
Hi
I need to generate an idoc when we delelte the shipping doc from VT02n tcode. How can i do that? I am new to ale and idoc
thanks
sankarHi
I got a clue on how to create the idoc and all. but where do i write the form which will generate the idoc. I mean is there any userexit in VT02n tcode where i can do that?
thanks
sankar -
Generate multiple idoc's from the single application doc(Sales order)
Hi All,
Iam working on a requirement where i have to generate multiple idoc's from a single sales order based on sales org, division on header data and plant at item level, if somebody please let me know how to proceed with this requirement.
Thanks
KashifHi,
You can create a Z-program and call Function Module <b>MASTER_IDOC_DISTRIBUTE</b>.
You can make a call to this FM to send the Idoc as many times as u have plants in your Sales Order.
You can call FM <b>IDOC_OUTPUT_ORDRSP</b> to fill the IDoc structure.
Then u can keep the materials of only that plant for which u want to pass on the information.
Thanks,
Utsah Garg. -
Outbound 856 - Error generating an IDOC
Hi Everyone,
We have a scenario where we need to generate an IDOC for Advance shipping notification for 856 outbound, the basic settings required to do the same are done using the message type DESADV and IDOC type DESADV01. However the IDOC is not getting generated and encountering an error while generating an idoc for 856 outbound from VL02N transaction, when checked the processing log the error with the message 'IDoc type DESADV01 cannot be processed by IDOC_OUTPUT_DELVRY' is displayed. Following Partner profile details are maintained in WE20 for the basic idoc type DESADV01,
processing code DELV ,
message type 'LAVA'
application V2,
also checked the fm attached in WE41 for the process code and found that it is the same. Can anyone give me a clue as to why IDOC is not getting generated for this message type,
Your quick response would be highly appreciated,
Rgds,Hai sailatha,
Just check these links you may get some idea.........
edi 856 inbound
Shipping Notification
Advance Ship Notice
Regards,
Srikanth. -
Hi Gurus,
I have activates the change Pointers for generating the IDocs whenever the master dtaa is changed.
Is there any technique so that I can recive the IDocs containing only those segment's data which is relevant for me.
Abhi....The question I have asked is not related to Inbound I Docs processing.
Actually I am sending the IDocs to Non-SAP system whenever any change is made to the master data, using the Change Pointers.
Now, the situation is that the file that is getting generated contains the data corresponding to many segments. So, is it possible to restrict the segments/fields for which the data is generated.
Thanks In Advance.......
Abhi.,, -
How to deleted the shipping notification record in the MD04
Hello Expert,
We have a very strange things here.
We have a Schedule agreement which need confirmation control for good receipt - means we need inbound delivery for the good receipt.
1. We have 20k open qty for delivery in the schedule line of the SA.
2. An we create an inbound delivery with reference to this SA with delivery qty 20k,
3. but when user discover that there is only 15k stock ready for good receipt, then he want to delete the inbound delivery and create a new one again.
4. user use an customized program to delete the inbound delivery, but there is some problem in this program, the inbound delivery was deleted successfully, but we found this shipping notification still existing in MD04 view.
5. And we double check confirmation overview in the schdule line for this item, we still found this inbound delivery existing in the list.
6. Then we try to use VL31N to create the inbound delivery with reference to this SA again, it is showing no stock for this material for good receipt as we don't have any open delivery qty for receipt. The existing 20k stock still waiting for good receipt although the inbound delivery was deleted.
Is there any method we can deleted this shipping notification in the MD04 and the entry with 20k in the confirmation overview of the SA?
Thank you very much for your help.Hi shiva,
Thanks for your program, I ran this program, but it can find nothing.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Regeneration of Sales and Delivery Requirements
ATTENTION: Only simulation
Simulation Only
List contains no data
Deleted Records in Total: 0 Single 0 Collective
Generated Records in Total: 0 Single 0 Collective
Total Elapsed Time: 119 ms
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Please advice, -
Hi,
I'm interfacing SAP with a WMS (Warehouse mabagement system).
When a delivery is created or modified, I'm posting an idoc delvry03 to the WMS(The idoc is created through an output type).
When the delivery is deleted the output type isn't triggerd so the idoc isn't generated.
I'm looking for a way to generate an idoc delevry03 when a delivery is deleted. Does any one have an idea about how to do this.
Thanks in advance.Omar,
You are able to comfortably create IDOCS when u create/modify deliveries because of NACE and condition records. (Output Type as you have mentioned)
A deletion of a delivery is an internal process and hence
we need to track it based on events.
You can try using a BADI and create the delvry03 IDOC thru an ABAP program from there? WIll this option work? -
Is it possible to generate outbound idocs for FI invoices? How?
Is it possible to generate Outbound idocs for FI invoices? How? or else i have to write program to get data in file and pass it to translator. Please help.
Dear Gabriel
Before letting you know the possibility, can you please let me know why you want such a requirement, since standard has not provided such copy control, to my knowledge.
As you would know order type KB is for consignment fillup where you are just transferring the goods from FG unrestricted to your own warehouse and that is why in standard you can see the copy control KB --> F8 which means you can raise proforma against delivery and not against fillup order.
So think of whether really you wanted to raise proforma against fillup order which is NOT recommended by SAP. However, still if you feel that the requirement is so to have, you can make the settings in VTFA.
thanks
G. Lakshmipathi -
Function Module to Generate Outbound IDOC for Sales Documents
Hello Experts,
Can someone please help me, I need to know which function module to use in order to generate the outbound IDOC for sales documents. Some of the fm's I have come across are the following:
IDOC_OUTPUT_ORDERS, but actually for Purchase Orders
IDOC_OUTPUT_ORDRSP, but did not generate any IDocs for my sample Sales Order.
Points will be given for any help provided.
Thanks in advance.Hi Nagaraj,
I tried using the IDOC_OUTPUT_ORDERS but I keep getting an error that the Purchase Order <xxx> does not exist, even though the document I tried is a sales order. For everyone's reference here is the code:
form process_data.
DATA v_idoc TYPE edidc-docnum.
DATA i_edidd TYPE TABLE OF edidd.
DATA wa_idoc_ctrl TYPE edidc.
LOOP AT i_nast INTO wa_nast.
CLEAR i_msgs[].
CALL FUNCTION 'WFMC_PROTOCOL_GET'
EXPORTING
cps_nast = wa_nast
tables
messages = i_msgs
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
LOOP AT i_msgs INTO wa_msgs WHERE arbgb EQ 'E0'.
*--- Check first if there is an IDOC
IF wa_msgs-msgv1 IS INITIAL.
CONTINUE.
ENDIF.
v_idoc = wa_msgs-msgv1.
CLEAR i_edidd[].
CLEAR wa_idoc_ctrl.
CALL FUNCTION 'IDOC_READ_COMPLETELY'
EXPORTING
document_number = v_idoc
IMPORTING
IDOC_CONTROL = wa_idoc_ctrl
* NUMBER_OF_DATA_RECORDS =
* NUMBER_OF_STATUS_RECORDS =
TABLES
* INT_EDIDS =
INT_EDIDD = i_edidd
EXCEPTIONS
* DOCUMENT_NOT_EXIST = 1
* DOCUMENT_NUMBER_INVALID = 2
OTHERS = 3.
CALL FUNCTION 'IDOC_OUTPUT_ORDERS'
EXPORTING
object = wa_nast
control_record_in = wa_idoc_ctrl
* IMPORTING
* OBJECT_TYPE =
* CONTROL_RECORD_OUT =
tables
int_edidd = i_edidd
* EXCEPTIONS
* ERROR_MESSAGE_RECEIVED = 1
* DATA_NOT_RELEVANT_FOR_SENDING = 2
* OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK.
ENDLOOP.
ENDLOOP. -
How to generate multiple idoc's from single appl document
All,
Iam looking for a way to generate multiple idoc's from single appl document (sales order). Based on the plant details on line items in the sales order i have to generate multiple idocs, i.e., send one idoc to each plant entered in sales order line items. any help will be appreciated.
ThanksHi,
You can create a Z-program and call Function Module <b>MASTER_IDOC_DISTRIBUTE</b>.
You can make a call to this FM to send the Idoc as many times as u have plants in your Sales Order.
You can call FM <b>IDOC_OUTPUT_ORDRSP</b> to fill the IDoc structure.
Then u can keep the materials of only that plant for which u want to pass on the information.
Thanks,
Utsah Garg. -
How to generate an Idoc form an existing Sales Order?
Hi experts.
Our client needs to generate an ORDERS05 output Idoc for Sales Orders that has already been created.
Is there a way to generate a new Idoc for those Sales Orders?
MASTER_IDOC_DISTRIBUTE won’t do the job cause I don’t how to complete all the segments, I need the standard procedure to be execute.
I thought to use a Bapi to modify the Sales Order, but that might execute routines that we not want to.
Any ideas?
Thanks.Hi,
You can generate an IDOC from invoice cancellation.Define a new "Z" output type for this cancellation billing document type and select the medium as 5(EDI).Check with your ABAPer for this.
Regards,
Krishna. -
Generating an IDOC for each Order present in the file (File to IDOC)
Hi ,
I have a requirement where in i have to generate an idoc for each orders present in a file . Initially i had implemented 1:N mapping by changing the occurence of idoc to 1..unbounded & using it as external definition i was able to generate multiple idocs.
But now the requirement is that even if one record contains invalid data , then XI shoul process remaining records(which has valid data) & then raise an alert for the invalid record . I have implemented this approach by using BPM (splitting the message) & the sending out each record as a single message to (1:1 mapping between file & IDOC).
But now they dont want me to use an BPM . They want me to come up with an approach using 1:N mapping only where in i can make sure that the mappig doesnt fail even if there is one invalid record ,they want me to process remaining records & raise an alert for the invalid one .
As far as i know this cant be done without BPM . Please let me know any valuable suggestions or inputs if there is any
Regards
Vinay P.Hi Vinay,
Had a similar requirement few days back..
What we did was to do a multimapping of 1:N where N = N1 and N2, N1 is the Idocs which you are doing today, N2 is the set of invalid records...
Now we have written this as a file and then created another interface which will pick the file and based on the name of file we decided the To address. We have used mail package and this interface (file to mail ) was made as a generic one so that it can be used across many interfaces...
filename and To address relationship was maintained as a value mapping in ID... You can have a thought of this approach and try to send the invalid records as a mail rather than alert.
Regards
Suraj -
Generate outbound idoc for Customer Master
Hi Developers,
I have requirement to generate outbound IDOC for Customer Master Data. I need to send customer master data through an Outbound IDOC. Can we generate an outbound DEBMAS06 idoc? Can someone help me finding a solution to this problem?
Thanks in advance for helping.
Regards,
GajendraHi,
If you have done all the required settings (logical system, partner profiles, distribution model), then either transaction BD10 / BD14 will help you generate the IDOC.
If you want to send the idocs automatically, then you will to configure some program.
Unlike transaction data, Master data IDOCS are not triggered immediately, you will have to do the required configuration in SPRO.
Transaction SPRO
SAP Customizing Implementation Guide -->
SAP Web application Server --> Application Link Enabling --> Modeling and Implementing Business Processes -->
Master Data distribution --> Replication of Modified Data --> Creating IDOCS from Change Pointers
Take a look at this thread.
Re: automatic Idoc outbound
Regards,
Ravi
Note : Please mark the helpful answers
Message was edited by: Ravikumar Allampallam
Maybe you are looking for
-
Can I use the Apple TV wirelessly?
I'm sorry if this is a stupid question. I don't have an Apple TV and am thinking of getting one. What I am wondering is, how can I use Apple TV if my TV is in the living room and my iMac is in the office? Would I hook up the Apple TV to the TV via
-
Alternative to isblank for a range of cells
Hi, I am trying to get a formula using countifs that will return the number of cells containing a checkbox with a "true" value if a related cell on a different row is not blank. In my mind this would look somewhat like =countifs(checkbox range, true,
-
Preference are not saved when leaving Photoshop elements 10
Hi, Each time I leave photoshop elements 10 (bought on Apple Store), A windows says that I don't have the required rights and my preference are not saved. Each time I restart the program it is re-installing the effect as if it's a new install. Any ch
-
Keeping iPhoto 6 AND using iPhoto '08
perhaps i missed something but i thought i understood that when iLife '08 was installed it left the prior apps in a folder somewhere so that i could use/revert to the older version if i wanted. we are set up as 2 users. i updated the library on one u
-
Sending a mail when submitting a form
i am developing an application wherein i am using a html form to gather some information from a user and on subimition of the form .the data need to be directly sent to a particular email address with using outlook express (i.e. through some coding t