on 2016 Feb 03 6:23 AM
Hi,
I need some technical information involve in my requirement.
I need to attach a PDF (of PO) file in the PO automatically every time when PO is created or changed.
For this I already did the necesarry config.
1. Created New Output Type ZNEU (Copy of NEU).
2. Transmission Medium 5 (External Mail)
3. Condition Record Created
4. Z-Report is associated with the new Output Type.
Could someone tell me how should I proceed for getting the PO output as PDF and then attaching this PDF file to the PO ?
Request you if you can respond ASAP. Many Thanks in Advance.
Best Regards,
Chirag Shah
Request clarification before answering.
Hey, I think below should be the approach to get closer to the solution-
1. Create a new smartform / adobe output which should be the required PDF format
2. Find a place/exit after PO gets saved ( should be a BADI).
3. Get the OTF output (smartform case) and convert to XSTRING or Get XSTRING from PDF form or copy BBP_OUTPUT_PO_PREVIEW_SMART function module to get OTF then xstring.
4. Get the instance of /SAPSRM/CL_PDO_BO_PO_ADV class and use its /SAPSRM/IF_PDO_DO_ATTACHMENTS~CREATE_ATTACHMENT method and pass the required details.
5. /SAPSRM/IF_PDO_DO_ATTACHMENTS~ACTIVATE_ATTACHMENT method of the same instance might be needed too.
New output type, condition records and report seems not necessary. I might be wrong but this is what my approach would be.
Thanks
Mohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.