Sapscript change - Purchase order

Hi All,
I have a requirement to send the PO created in mail.
I included the code for sending the email in the Z driver program for the Z script created earlier for PO.
But i am not sure whether i have included the code at the right place and do i have to make any necessary script changes too.
I included the code right after the 'CLOSE_FORM' function is called in the program, but i am getting error and PO is not getting created too.
Could anyone please help me in writing the code in script and program at the right place.
Thanks & Regards,
Bhavika

When did you send the message? what message u send to mail. are you using separate z program to send mail..
i am not clear about ur requirement..
Edited by: Kiran HPL on May 14, 2010 7:05 AM

Similar Messages

  • Adding a new check box in change purchase order screen

    Hi
      I have to add one custom field a check in the screen for change purchase order in EBP.
    We are using ITS.
    Kindly advice.
    Thanks and Regards
    Manoj

    Hello Manoj,
    you can define Customer Fields (CUF) at header, item, accounting level on any document type (including PO).
    Adding seach fields acts as old ABAP method of table append, i.e. those fields are stored in standard SRM tables. So you can process your own logic and checks against those fields.
    There is a BADI to control the display or not, the input or not, the default or input values.
    There is a BADI to control the ergonomy of CUF (by default they are added one after the other after standard fields).
    There have been many posts about CUF and linked OSS notes explaining own it works and which includes to use.
    Rgds
    Christophe

  • How to change purchase order's cost center in batch

    Dear all :
    how to change purchase order's cost center in batch?

    Dear Manish :
    thanks so much for you reply.
    the filed which i wanted to change it's content is cost center (KOSTL) in table EKKN.
    i couldn't find it in this t-code when i select fields.

  • I want to change Purchase Order Print

    I want to change Purchase Order Print. I want to add the name who has done last change in Purchase Order. Please help.

    You no need to add the changes, It can be shown in Environment menu. If u want to see the person who changed the PO in ur Print, ABAP work will be required..
    By the way what is the business requirement for this. B'cas PO is meant for vendor, Why do u want to print, whoever did the changes..This thing you can see from SAP itself at anytime.
    Cheers!
    ***Reward If useful (RIU)

  • No Authorization to change Purchase Order for Professional Purchaser

    Hi Experts, I am facing the following issue,
    System Info :
    SRM 5.0
    ECC 6.0
    IE 6.0
    I logged in as the professional Purchaser in to My SAP SRM browser and when I try to change a Direct material purchase order, I get the following message:
    No Authorization to change Purchase Order xxxxxxxxxxx.
    Here is my sequence of operations:
    Logged in as Proff Purchaser, selected the process purchase order link, then selected the purchase order from  the worklist and click on the change icon.
    Please let me know if need to customize any settings.
    Thanks in advance,
    Raj

    hi,
       In trascn PFCG,for the role of Startegic purchaser,under the Personalization tab,set the attribute  BBP_WFL_SECURITY to '4'.Also,check the authorisation data for the Strategic purchaser role.
    HTH.
    BR,
    Disha.
    Pls reward points for useful answers.

  • BAPI or FM for changing Purchase Order

    Hi,
    Does anybody know a BAPI or FM to change Purchase Order item details. I looked for  a BAPI but only found for creating and listing.
    thanks.

    I think this is becuase the BAPI for PO change has not been "released". If you use transaction BAPI, then click the filter button, then select "All", the PO change bapi will appear int he MM-> purchasing-> purchase order hierarchy. (BAPI_PO_CHANGE)
    Although it is not officially "released", neither is the function module to do the same task. We use the BAPI on a regular basis, and it works fine. I think unreleased just means you will get no support if you use it, and SAP can change it at any time.
    I am not sure what makes a BAPI go from un-released to released...

  • Report on changed Purchase order

    Dear group Members
    Warm greetings
    I am not finding a standard report where i can view list of all changed purchase orders
    help me to find this report, i will be very thankful to you
    regards
    shamul heq

    hii Shamu
    In standard SAP , there is no reports particularly for ammendment Po list.
    But individual PO u can see the chages happened in that PO's one by one.
    GO to ME23N , the go to environment, then header chages  here u can find the list of changes happened in PO.
    If u need the report , u can create custom report with help of technical consultant.
    Thanks
    SAp-MM
    Edited by: MM group on Feb 25, 2010 5:29 AM

  • Inbound Idoc Create/Change Purchase Order

    Hi All,
    I have to do a inbound Idoc scenario for create as well as change Purchase Order.
    Which is the IDoc type for Create/Change purchase order.
    I went through this form found that ORDERS05 can be used but I am not sure this can be used for both create as well change Purchase Order.
    If ORDERS05 can be used then which is Process code,Function Module and Message type for both create and change Purchase order.
    I also found that IDoc type PORDCR102 can be used for  create Purchase order and PORDCH02 can be used for change Purchase order,but i don't want to use two Idoc types.
    Please suggest.
    Thanks in advance.
    Regards,
    John

    Hi John,
    For creating a IDoc for PO, whenever a PO is created/Changed, it has to be configured in Parter Profile(WE20) for a particular Partner in Outbound Paramtrs tab.
    Give ORDERS05 in Message Type and select the line & go to Display.
    In the screen which appears , choose tab Message Control and give the Process code
    ME10 - Creation of PO
    ME11 - Changes to PO & check the Change Message.
    Give respective Output Message Type & Application(VF) for PO.
    Create Output types for a vendor in T.Code MN04, else take help from MM Consultant.
    Create a PO & save. Then make some changes in Po & again save.
    Now IDoc will be created while saving the Po & IDocs will be created whenver you make changes to PO and saving it.
    Hope It helps.
    Regards,
    Anbalagan

  • Please send me fm regarding to get purchase order and change purchase order

    Hi,
    Please send me fm regarding to get purchase order and change purchase order .
    Regards,
    Gurprit Bhatia

    Hi,
    Function module to get the purchase order details:
    BAPI_PO_GETDETAIL.
    data: po_items type table of bapiekpo with header line.
    parameters: p_ebeln type ekko-ebeln.
    call function 'BAPI_PO_GETDETAIL'
      exporting
        purchaseorder                    = p_ebeln
      ITEMS                            = 'X'
      ACCOUNT_ASSIGNMENT               = ' '
      SCHEDULES                        = ' '
      HISTORY                          = ' '
      ITEM_TEXTS                       = ' '
      HEADER_TEXTS                     = ' '
      SERVICES                         = ' '
      CONFIRMATIONS                    = ' '
      SERVICE_TEXTS                    = ' '
      EXTENSIONS                       = ' '
    IMPORTING
      PO_HEADER                        =
      PO_ADDRESS                       =
    tables
      PO_HEADER_TEXTS                  =
       po_items                         = po_items
      PO_ITEM_ACCOUNT_ASSIGNMENT       =
      PO_ITEM_SCHEDULES                =
      PO_ITEM_CONFIRMATIONS            =
      PO_ITEM_TEXTS                    =
      PO_ITEM_HISTORY                  =
      PO_ITEM_HISTORY_TOTALS           =
      PO_ITEM_LIMITS                   =
      PO_ITEM_CONTRACT_LIMITS          =
      PO_ITEM_SERVICES                 =
      PO_ITEM_SRV_ACCASS_VALUES        =
      RETURN                           =
      PO_SERVICES_TEXTS                =
      EXTENSIONOUT                     =
    check sy-subrc  = 0.
    loop at po_items.
      write:/ po_items.
    endloop.
    Check this program too:
    RFFMFG_INV_CANC_ALL for BAPi_PO_GET_DETAIL.
    Hope it helps you.
    Regards,
    Anjali

  • Changed Purchase order triggering Email and Fax to vendor

    Hello,
    Ecc6.0 srm3.0.
    a changed purchase order triggering email to vendor, although in the table BBPD_PO_METAOUT all the fields are unchecked and we donu2019t have customization in the table BBPD_COMP_FIELDS,
    Please suggest, we donu2019t want email of fax to be triggered when we amend the purchase order,
    Thanks for reply.
    jairaj

    When we change vendor text, It is SAP std that mail will triger to vendor

  • Automatic ORDCHG Change Purchase Order after Order response from Vednor

    Hi
    How to trigger Change Purchase Order action after receiving PO Confirmation - Order Response from Vendor.
    The scenario is that Order Confirmation vednors sends contains delivery date or delivery qunatity variance within defined tolerances. In such cases it is acceptable to allow automatic PO change.
    This is an EDI scenario. Idocs ORDRSP and ORDCHG in use.
    Thanks for hints.
    Mariusz

    - For automatic document adjustment, you must make the necessary settings in Customizing (SPRO ->Materials Management->Purchasing->Conditions->Automatic Document Adjustment). The system logs all the relevant purchasing documents and can therefore determine all the documents affected by a change to a condition.                                    
    - This is only possible for purchasing documents for which follow-on documents (goods receipt, invoice receipt) do not exist.           
    - Before you run this report, you must have run report RMEBEIN4 (creation of worklist for automatic document adjustment).

  • Change Purchase Order : Document Date

    Hi Gurus,
    I would like to change Purchase Order: Document Date due to wrong input but I found out this field has been grayed out from change (ME22/ME22N) after save.
    Can anyone tell me how to solve this problem?
    Thanks & regards,
    Loi

    Dear Gurus,
    Is there is any effect of changing the PO's Document date? What is the usage of PO's Document date, in which area?
    If no effect, can I customize the PO: Document Date field through Application transaction variant function?
    Pls adivse.
    Thanks & regards,
    Loi

  • Mail Changed Purchase Order

    Dear,
    I can mail my purchase orders, but when I change my PO and want to send the changes to the vendor I would like to have the title changed automatically too.  Does anyone knows how I can do that? 
    So, instead of "New Purchase Order &PO - Number&, it should also be possible to send "Changed Purchase Order &PO - Number& without changing the title manually...
    Can anybody help me please?
    Thanks in advance!
    Best Regards,
    Lien

    Dear,
    Thanks for your help, but I actually mean the subject title of the mail.
    A purchase order number, for example, can be added by "ekko_ebeln"
    I would like to add the status new or changed in my subject title without a manual intervention.
    Regards,
    Lien

  • SRM 7.0 Output for changed purchase order documents

    Hi all,
    if we change purchase orders we like to send a PO output document for changed purchase orders only if we change certain PO fields in header or items.
    What is the functionality in PO - Header - Output - Order and Send Immediatelly ? We thought that this function is the solution!
    But independent we press the button <Order and Send Immediatelly > or button <Order> the system creates allways an output document in any cases of PO field changes which will be sent to a supplier (fax, email). How we can control that a PO document only will be created in cases we define ?
    Kind Regards
    Edited by: Hermann-Josef Wessels on Mar 28, 2011 6:53 PM

    Hi Jay,
    we like to control the output because PO changes for G/L account, cost centre or change from account assigment order to cost centre are not interesting for the supplier and in this cases a PO document should not be sent to the supplier. This was the main reason why we like to use function <Order and Send Immediatelly>.
    So I would like to clarify the requirement:
    1. Automatic created output document if a new PO will be created
    2. Automatic created output document if a PO will be changed but no output if the following fields will be changed:
        e.g. for G/L account, cost centre or change from account assigment order to cost centre
    So we come back in our discussion to table: BBPV_COMP_FIELDS. There are entries for POO = PO Output and POR = Version comparison for Purchase Order.
    Question: Can I use structure name: BBP_PDS_ACC for our requirement. If yes which field-names I have to maintain in detail in this table. If possible I need the entries in detail.
    Kind Regards
    Edited by: Hermann-Josef Wessels on Mar 30, 2011 9:20 AM

  • PORDCH01-change purchase order Idoc

    Hi all,
           I require some suggestion pertaining to PORDCH01-change purchase order Idoc. The vendor raises a claim purchase order in his system and eventually a return sale order is created at the central system and i am using a custom program to generate idoc's of type PORDCH01 and propagate it back to the vendor , while doing so I need to change the value of the field LFRET(Delivery Type for Returns to Vendors) , the Idoc doesnu2019t seem to have this field in any of its segments and even if i extend this idoc , i donu2019t have appropriate exits in the inbound function module which let me map this data field to  the required field EKPO- LFRET.I donu2019t want to go for a custom solution so Your help is much appreciated .
    Regards,
    Rethish..
    Edited by: Rethish Radhakrishnan on Sep 6, 2011 10:40 AM

    Hello Raja,
    Just a further question in that case
    Can I used Message type ORDRSP and basic type ORDERS05 on both the sides i.e. SD side and MM side?
    Any changes made in sales order should update the PO.
    As with the current situation i can not use PORDCH idoc on SD module side. Pls let me know.
    //Guru

Maybe you are looking for

  • Convert language display name back to the ISO language alias

    Hi, How can I conver string from getDisplayLanguage() of the Locale class back to the ISO language code?

  • Ipad "other space" from a third party app

    i have downloaded a third party app (torrent) but to no avail it doesn't play the movie that i have downloaded, even worse it took up "other" space when I tried opening it on VLC and File Manager but when i browsed on SETTINGS>General>Usage it did no

  • SAP BI Technical Content

    Hello Forum We have a requirement to know how frequently a particular query is used. I came across few tables which gave me the time stamp when the query was last used however could not find any table to get the logs of query execution. Can anyone pl

  • Storing .msg files , using them in hyperlinks

    Hello ev'body! We have a problem with .msg files stored in SharePoint 2013 online. If we access them directly from SharePoint they open up in Outlook as we expect them to. On the other hand, if we make hyperlinks to them from Excel, Office gets confu

  • Flash video losing skins in DW

    I am embedding Flash SWF files in my Dreamweaver pages. I haven't uploaded them yet, but when I preview in browser the skins are missing from the video. I've tried recreating the flash files. The skin SWF and the video SWF are in the same folder (alo