PO output: XML as default output medium
Hello experts,
We want to send XML output to a legacy system and we have 4 output mediums on our portal for PO's:
Print
Fax
Email
XML
Is it possible in configuration to make XML the default output medium but still allow the other 3 output mediums to be used.when requested.
regards
I had the same Problem and I solve it with this code. ( in 3 Systems)
1º you must do a change in the Po
2º you use a reference to change all over.
Example:
1º -
DATA:
lo_po_cl_instance TYPE REF TO /sapsrm/cl_pdo_bo_po,
lo_po_temp_instance TYPE REF TO /sapsrm/if_pdo_bo_po_adv,
lo_po_adv_instance TYPE REF TO /sapsrm/cl_pdo_bo_po_adv,
lo_po_instance TYPE REF TO /sapsrm/cl_pdo_bo_po,
* Read an existing PO
CALL FUNCTION 'BBP_PD_PO_GETDETAIL' ...
*change a text 'NOTE'
wa_longtext-tdid = 'NOTE'.
* Update Doc
CALL FUNCTION 'BBP_PD_PO_UPDATE' ...
* Save Doc
CALL FUNCTION 'BBP_PD_PO_SAVE'
CALL FUNCTION 'BBP_PROCDOC_RESET_BUFFER'
2º Them you use de reference to "/sapsrm/cl_pdo_bo_po"
CALL METHOD /sapsrm/cl_pdo_factory_po_adv=>get_instance
EXPORTING
iv_header_guid = ls_i_header-guid
iv_mode = 'EDIT'
iv_process_type = ls_e_header-process_type
RECEIVING
ro_instance = lo_po_temp_instance.
lo_po_adv_instance ?= lo_po_temp_instance.
lo_po_instance = lo_po_adv_instance.
lo_po_cl_instance = lo_po_instance.
ls_output_s-guid = ls_i_header-guid.
ls_output_s-medium_type = 'XML'.
CALL METHOD lo_po_cl_instance->/sapsrm/if_pdo_do_output~set_output_info
EXPORTING
is_output_para = ls_output_s
CHANGING
co_message_handler = e_messages.
*in my case it´s work
*if you want the full code send me a message.
Similar Messages
-
Hello,
Can any one please tell, where can I maintain the default output medium for a business partner?
Is it in transaction BP - address tab?
Where can I set the default output as XML?
I am in SRM4.0. Please help me.
Regards.Hi Aruna
Manage Business Partner via web
There is output medium section in the Business Partner.
however it may stored in BBP_SENDMEDIUM table plz check..
regards
Muthu -
PO output medium XML in Vendor data missing
When we try to create a BP as vendor, we dont see XML as the output in Send Medium in the Co. code tab.
Is there anything to be configured so that XML shows up as the output medium ? We only see Fax, Mail, Print.
-BakuleshHi
Please go through this ->
<b>You should logon as Buyer profile</b>
<u>Following roles should be added to the user profile,
SAP_EC_BBP_PURCHASER
SAP_EC_BBP_ST_PURCHASER
SAP_BBP_STAL_PURCHASE_MANAGER
SAP_BBP_STAL_STRAT_PURCHASER</u>
<b>Instead of logging via BP Transaction, go for transaction - BBPMAININT (Edit Business Partner - link will appear on the Left hand side of the SRM Web page after logon screen, once the roles have been added to the user)</b>
<b><u>Other SAP OSS notes of interest -></u></b>
<u>Note 885593 - SRM 5.0 SP02: Incorrect output medium and change impossible
Note 1028388 - User settings for output medium is not saved.
Note 365276 - Problems when sending EBP XML documents</u>
<u>Related OSS Notes -></u>
<u>Note 575159 - Authorization error for HTTP communication via BC
516869 - Sending EBP XML to BC by HTTP: Error Authorization Required
377600 - Not possible to send an invoice in EBP XML format per http
377589 - An invoice in EBP XML format cannot be sent via FTP
370906 - PO or Invoice cannot be sent per https in EBP XML format
370899 - Error when sending PO or invoice per http in EBP XML format
502938 3.0: Customizing for the output of purchase orders
380577 EBP 1.0: Send PO XML via MarketConnect
Note 564826 EBP: Customizing for the output of EBP documents</u>
Hope this will help.
Regards
- Atul -
Changing Default Output Medium in VOFM
Hello All,
I need to change the default output medium of an invoice to whatever medium the customer has maintained in the customer master. I need to default this medium into the header output screen as the default output, overlaying whatever other default value may be set up. I tried doing this in a V3 VOFM routine by changing XNAST, and that isn't working. Could anyone please steer me in the tright direction, or let me know if I'm taking the wrong approach? I had thought entering an appropriate value in XNAST would do it, but so far, no. Thank you very much!Hi
Try to mantain it with customizing tools. ie: tcodes VV31/VV32/VV33. If you need additional sequences you can customize it and change it in the customizing of message type (tcode V/40). For more details, go to SD and billing forums.
I hope this helps you
Regards
Eduardo -
BADI for updating changing output medium in PO
Hi,
Is there any BADI or exit present for updating the output medium in PO , based upon some criteria ?
In my requirement I want to make output medium as <b><b>'email'</b></b> and set email address to email ID of one of the partner function maintained in PO.
Thanks and Regards,
Amit RHi
<b>At runtime, you will get the GUID in the BADI Interface.</b>
Incase this BADI does not help, go for another BADI
1) <u>BBP_SEND_MEDIUM_MODE</u>
(Determines the Default Settings for the Send Medium)
2) '<u>BBP_OUTPUT_CHANGE_SF'</u>.
<u>Here are some related links -></u>
Re: PO output medium issue
Re: SRM PO SMARTFORM
Re: Control PO output to vendor
Re: Add a Printer ? -> LP01
Hope this will help.
Regards
- Atul -
Dear all,
How to change PO output medium for a particular vendor?Hi Judy,
The transmission medium is defined for Output Type in customizing under SPRO-mm-purchasing-messages-output control-message type-Define Message Types for Purchase Order-Maintain Message Types for PO, select your Output Type, check details and Default values.
This is not maintained for a particular vendor, you use condition records in mn04 for triggering these outputs.
You may have to consider creating a new output type.
Thanks
Shailesh -
Multiple Output Medium for vendors in Manage Business Partner
Hi,
I'm trying to put more than one output medium in Manage Business Partner for a Vendor, Transaction BBPMAININT.
But unable to do so.
1. I would need assisstance that is it right to have multiple output medium for a Vendor functionally?
2. How do i achieve it.
Waiting for a quick response,
Regards,
Neha Misra.
Edited by: Neha Misra on Mar 28, 2008 1:18 PMYou can maintain Alternate Vendor Contact for the Vendors in the transaction BP; The Purchaser here after can choose which one to use during a particular time of the ordering the purchase order. This will be possible for the purchaser at the time of creating the purchase order in the Basic Data Tab - Alternate Vendor Contacts.
For every vendor contact you will need to have a default medium for output; which will be used to send the PO to the vendor.
Please reward points if found useful.
Thanks
Kasee Palaniappan -
Reg Output medium in Purchase order.
Hello Experts,
I am working on SRM 5.0, Standalone scenario with strategic procurement.
We have a requirement from users to hide the Output medium link in PO display screen. This has been done but now when I go in "Change mode" for purchase order, I am getting the following error - "Output: No details for medium PRN in vendor master record" .
Any idea how I can resolve this issue. I have already checked for the attribute "Default Printer" as LOCL set at Company level.
Also, while debugging I noticed this error arises from a check in FM - BBP_OUTPUT_PO_PARAMS_CHECK - Message class - bbp_ui_po and
msg-id - 045 (line no 112).
Kindly let me know your suggestions.
Regards,
Rajeshree.Hi
<b>Please Maintain all the mandatory organizational attributes to the root Enterprise
organizational unit. (In Transaction PPOMA_BBP).
Add the attributes to the root - organization unit.</b>
<u>PRI (Default printer) say LOCL or LP01</u>
<i><u>Also refer to following SAP OSS notes.</u></i>
<b>Note 1028388 - User settings for output medium is not saved.
Note 885593 - SRM 5.0 SP02: Incorrect output medium and change impossible</b>
Hope this will help.
Please reward full points, incase it suits your requirements.
Regards
- Atul -
CHANGE THE OUTPUT MEDIUM FOR SRM PURCHASE ORDERS
We are using SRM 5.0
I tried to change the SRM purchase order's output
medium from 'XML' to 'Print' using a function module
'BBP_OUTPUT_PO_PARAMS_SET' within the BADI 'BBP_ECS_PO_OUT_BADI'. Though it changes the
output medium and chooses the right radio button
at the UI interface level (i.e)
Purchase order Header->output->
radio buttons(print,email,fax,xml)
It still holds the output medium as 'XML' at the
Document output log and process the document as 'XML'.
Is there a way to update the output log to hold the changed medium i.e (print)
Thanks and Regards,
GiaHi,
Have a look at the foll thread for more pointers;
Re: Change medium of output for Changed PO in SRM
BR,
Disha.
Do reward points for useful answers. -
User exits while changing the PO Output Medium
Hello Champions,
Will anyone share me, is there any user exit which triggers while changing Purchase Order Output Medium in ME22N transaction. How to know list of user exits which are applicable for ME22N transaction?. will anyone guide me.
Reward with Full pointHi PV,
These are the list f User exits for ME22N:
Exit Name Description
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
Regards,
Maia -
Output Medium for SRM PO not saved
Hi Gurus,
We just upgraded the landscapes with the recent servicepack level. We are using SRM 5.0 Extended classic on SP level 15.
The issue now is when PO is ordered for first time, output medium defaults to what ever the config setting has. It was not necessary to select output medium(Printer/fax/email).
But when PO is changed(not necessarily change PO data) and either check/order is selected, message 'No output medium identified' is thrown.
If you select any one of the output medium and then do the check/order, PO is processed/ordered. I am not sure if the output medium settings are not saved or being overridden during PO change. Please advise.
thanks
Rao.Hi Rao
some thing makes default medium as spaces.
Note 1072367 - No output medium identified error even if medium selected.
A Purchase Order is created with a vendor containing no default medium specified in the vendor master data. Now, even after selecting a valid output medium, the error message 'No output medium selected' does not go off
check with technical resource ? is it really internally makes SPACES (empty)
check any logic in your smartform.
if yu have time create one OSS mesaage too.
muthu -
How to set output medium for a PO for a vendor in SRM?
Hi,
I want to set the output medium(printer) of the PO for a vendor in SRM.
Where can I do it?
Thanks and Regards,
RameshHello Ramesh,
If your SRM vendor is a R/3 (i mean it was replicated from R/3), check what is the standard communication method for this vendor in its R/3 view.
This communication method will be the same in SRM once vendor created/updated in SRM (see "Manage Business Partner" web transaction for monitoring).
If your vendor is only created in SRM, maintain directly this default ouput medium in same "Manage Business Partner" web transaction for monitoring.
Then, in order to have the printing output successfully processed, you need to add in the attributes of organizational units of your structure ( PPOMA_BBP transaction) a default value for the printer (see "Attributes" tab and attribute ID "PRI").
Finally, be sure that in BBP_PO_ACTION_CONF transaction, printing processing type is correctly customized.
Regards.
Laurent. -
SapScript Form by email: Using output medium 5 - several email address
Hello, ppl
I've been doing some developing concerning the send of correspondence by email.
I've used output medium 5, and have have build email recipient parameters as follow:
Getting email address:
CLEAR address.
SELECT SINGLE smtp_addr FROM adr6
INTO address
WHERE addrnumber = p_adrnr
AND persnumber = space
AND flgdefault = 'X'.
IF address IS INITIAL.
p_device = 'PRINTER'.
EXIT.
ENDIF.
create recipient
swc_create_object lo_recipient 'RECIPIENT' space.
swc_set_element lt_container 'SendAsACopy'
'X'.
swc_set_element lt_container 'AddressString'
address.
swc_set_element lt_container 'TypeID'
'U'.
swc_call_method lo_recipient 'CreateAddress' lt_container.
swc_object_to_persistent lo_recipient p_persistent_recipient.
create sender (current user)
swc_create_object lo_sender 'RECIPIENT' space.
swc_set_element lt_container 'AddressString'
sy-uname.
swc_set_element lt_container 'TypeID' 'B'.
swc_call_method lo_sender 'CreateAddress' lt_container.
swc_object_to_persistent lo_sender p_persistent_sender.
And have called open_form as follows:
CALL FUNCTION 'OPEN_FORM'
EXPORTING form = xformular
language = ekko-spras
OPTIONS = itcpo
archive_index = toa_dara
archive_params = arc_params
device = xdevice
dialog = xdialog
mail_sender = p_persistent_sender
mail_recipient = p_persistent_recipient
EXCEPTIONS canceled = 01.
IF sy-subrc NE 0.
PERFORM protocol_update USING '142' ekko-ebeln space space space.
retco = sy-subrc.
EXIT.
ENDIF.
Everything works fine ... problem is i need to send the email to several adresses and also add some as CC: instead of TO: in the email parameters.
Is this possible?
As far as i know mail_ricipient only allows one email reference ...
Please, provide some help.
Thanks,
MárioLOOP AT <receiver_table>.
w_email = <receiver_table-mailid.
*-- Create persistent send request
send_request = cl_bcs=>create_persistent( ).
*--Add document to send request
CALL METHOD send_request->set_document( document ).
*-- Get sender object
sender = cl_sapuser_bcs=>create(<Sender mailid / userid ).
*--Add sender
CALL METHOD send_request->set_sender
EXPORTING
i_sender = sender.
recipient = cl_cam_address_bcs=>create_internet_address( w_email ).
RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( P_RECVR ).
*--Add recipient with its respective attributes to send request
CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient.
*--set send immediately flag
send_request->set_send_immediately( 'X' ).
*--Send document
CALL METHOD send_request->send( ).
COMMIT WORK.
endloop. -
Output error in purchase order 3000000002 for output medium PRN
Hello,
I got this error message:
'Output error in purchase order 3000000002 for output medium PRN'
Regards,
LinaHi
<b>Please go through this -></b>
To set Output type,check the foll path:
SPRO->supplier relationship management-> SRM Server->Cross application basic setting->set output action and output format
See the foll link for more details:
http://help.sap.com/saphelp_srm50/helpdata/en/91/41faf2c220e84c9002a4ae4cc1906a/frameset.htm
Look for BADI "BBP_SEND_MEDIUM_MODE ".
<b>Related notes:</b>
Note 1028388 - User settings for output medium is not saved.
Note 885593 - SRM 5.0 SP02: Incorrect output medium and change impossible
Do let me know.
Regards
- Atul -
Hi Experts,
When we maintain the PO output medium as ‘External Send’ for Language ‘BG’, the PO pdf is showing # instead of character.
But, if the output medium is PRINT and language is ‘BG’, the PO pdf prints correctly in BG language.I have checked the output type
NEU and find that same smartform is maintained for both the case.
Also it is working fine in the Quality as well as in development server.. issue is coiming only in PRD.
Thanks in advance!!
Regards
MrinalHi,
PLease review the steps from SAP note 191470.
Best Regards,
Arminda Jack
Maybe you are looking for
-
Isn't this Exception block redundant?
DB Version: 10.2.0.4 Found this on procedure code. begin select nvl(user_id,'NONE')into v_userid from user_info where user_id = p_userid; exception when no_data_found then RAISE_APPLICATION_ERROR (-20002, 'No Such User'); end;
-
Deployment error in TEST by CMS
Hi All, I have created a track and trying to transport a request from dev to prod. When i am trying to import the request in test tab in CMS the following error is there: Server <server name> did not accept login request as admin on port 50118. Detai
-
Blue screen, or Green screen - which is less problematical
Setup: Canon HV20, FCP6.1, MBPro 2.33 I have a Blue screen and am considering getting a Green screen. The Blue, being pretty dark, seems to cause problems for the camera, esp. with contrast with the actor that make for tricky lighting. Just curious i
-
How to combine with JSP??
I am a newble to Flex 2 I am confuse that how can i combine with JSP to send and retrive data with mysql ?? I have seen some examples that juz make a linking with jsp which is printed to XML format for data extracting. But how to insert and retrive d
-
If Safari or internet apps are running in the "background..."
Are they still going using data? I'm a new member on a 2GB a month plan. Most of the time I'm on wifi, but not always. I've been being careful to turn them off if I'm not on wifi, but how careful do I have to be? I don't really know much about this.