cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger output from SAP Outbound delivery document when there is change in the delivery document

Former Member
0 Kudos

Hi

I have a requirement to trigger output from  SAP Outbound delivery document  when there is change in the delivery document like line item material and qty.

Can you please advise how to achieve it with standard SAP functionality or through ABAP enhancement?

Thanks in Advance.

Regards.

Ravikanth

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi

i found  below  link  for the same query,but the actual changes or enhancement not mentioned.

Anybody worked on the same area ?

http://scn.sap.com/people/ravi.dev/blog/2010/02/02/email-output-to-multiple-recipients-functionality...

Thanks

Ravikanth

Lakshmipathi
Active Contributor
0 Kudos

Normally, before saving the delivery itself, output would be triggered and I don't understand what changes users would make after saving the delivery.  If at all they want to make any changes, it should be before saving the delivery, in which case, your requirement would certainly be fulfilled.

G. Lakshmipathi

Former Member
0 Kudos

Hi Lakshmipathi

User will change outbound delivery  for below fields in the delivery change mode (VL02n), then system should  trigger output automatically.

(delivery address/delivered quantity/picked quantity/ texts/ transportation planning date)

Thanks

Ravikanth

Lakshmipathi
Active Contributor
0 Kudos

Moved from SAP ERP SD Sales to Output Management

Former Member
0 Kudos

Hi Guru

Any body implemented and worked for the mentioned scenario in SAP system  ?

Please advice to proceed  with customization ?.

Thanks

Ravikanth

Former Member
0 Kudos

Hi

i found  below  link  for the same query,but the actual changes or enhancement not mentioned.

Anybody worked on the same area ?

http://scn.sap.com/people/ravi.dev/blog/2010/02/02/email-output-to-multiple-recipients-functionality...

Thanks

Ravikanth

0 Kudos

Hi Ravikat,

In order to issue output again you need to check flag multiple issuing in output configuration.

Define output requirement routine for the same output type.

The logic should be in the routine as follows :

Constants :  lc_xlips type CHAR20 value '(SAPMV50A)XLIPS'.

Field-symbols : <ft_XLIPS> type VA_LIPSVB_T.

Data : lt_xlips type standard table lipsvb,

            ls_xlips type lipsvb.

assign lc_xlips to <ft_xlips>.
if <ft_xlips> is assigned.

lt_xlips[] = <ft_xlips>.

endif.

if lt_xlips[] is not initial.

loop at lt_xlips into ls_xlips.

If ls_xlips-updkz = 'U'.

SY-SUBRC = 0.

exit.

endif.

endloop.

endif.

The above code checks whether change happens in delivery line item level and it will retrigger the output.

Regrads,

Santosh

Former Member
0 Kudos

Thanks Santhosh

Former Member
0 Kudos

Hi Santosh

We tried with help of your code.

system is not giving any values in LIPS table in the background debug mode.

Thanks

Ravikanth

Florian
Active Contributor
0 Kudos

A dirty assign is never the solution! Use this absolutely at your own risk.

~Florian

Former Member
0 Kudos

Thanks for reply. Do we need to modify user exit also to achieve this ?

Former Member
0 Kudos

Hi

1.Create a requirement routine in ABAP [VOFM] which checks eg.  if the Delivery Qty[LIPS-LFIMG] has changed in the document.(you can add all relevant fields that you may want to change and trigger ouput after the change) 
2. Use standard Output Determination for Outbound Deliveries to define your OP Type, Acc Seq, OP Determination Procedure [Def, Assignment], OP Type assignment to Partner Fns etc.
3. Assign this Requirement routine to the Access Sequence for your Output Type.
4. Mainatin the OP Master records at the key combination level [vv21]
If the delivery qty is changed by the user in the doc, then the system validates the reqt and proposes the OP Type at the Delivery Doc level.

Thanks.

Former Member
0 Kudos

Thanks for reply.

we can put some condition like  Qty change [LIPS-LFIMG] in a new customized routine [VOFM].

Will routine able to trigger out put where there is qty change in the delivery document ?

Or do we need to modify any user exit related to outbound delivery ?

Regards

Ravikanth

jpfriends079
Active Contributor
0 Kudos

Frankly you can't control trigger of output based change to particular fields in your document with Routine. Routine will control trigger of event, that means it will execute the event. Hope you understand once the output is determined in doc, it will not determine again automatically. You can search and refer my post in SCN on this.

Do you want std program and form routine details of the same? Then let me know the transmission medium for the output.

Thanks, JP

Former Member
0 Kudos

Thanks Prakash for reply.

We have currently used Output form (transmission medium :By mail) to trigger from Delivery, that output need to be triggered If any outbound delivery qty and line item is changed.

If we have any standard program and routine , we will proceed for it.

Other wise please let me know how to customize the requirement or standard program .

If possible please share your earlier post on SCN.

Thanks

Ravikanth

jpfriends079
Active Contributor
0 Kudos

Well. You can ask your developer to look into this. Meanwhile try with following:

Program: FM06AEND

FORM Routine: CHANGE_FLAG

Also, refer SAP Note 395569 - CHECKLISTSD: Change outputs

Thanks,

JP

Former Member
0 Kudos

Hi Prakash

We tried to implement code as mentioned in the S Note 395569 & tried to debug with break point.

But system is not going break point.

Please advice.


Thanks

Ravikanth

jpfriends079
Active Contributor
0 Kudos

Ravikanth

Strange!

The SAP Note 395569 mention by me is not correction Note, whereas that is Recommendations/additional info which will assist you in understanding the context. Moreover, did you try with


Program: SAPMV50A

FORM Routine: CHANGE_FLAG

before going for your own program & from routine.

Thanks,

JP

Former Member
0 Kudos

Hi JP

We tried to implement SAP Note 395569,  but not sure what need to be coded for from routine for ZZ_DELIV_CH.

Can any one advice to proceed further ?

thanks

Ravikanth

Former Member
0 Kudos

Hi Gurus

Please throw some light on the requirement.

Thanks

Ravikanth

jpfriends079
Active Contributor
0 Kudos

To achieve your requirement, in TCode NACE for your desired output type's configuration General Data tab you should have following things:

1. It should relevant for Multiple print.

2. And there be an entries in change output. Here SAP provides some standard program & form routine. If you have some specific requirement, then you might to develop a custom program & form routine.

Thanks,

JP