Automatic mail sending for goods receipt

Hello friends
When a goods receipt against a PO (movement type 101) is done into any plant , an e-mail should be sent to ‘[email protected] ’ stating:
Material # XXXX quantity XXX has been received into Plant XXXX (field WERKS) Storage Location XXXX (field LGORT) and the date received in.
Plz suggest how to do this.
what are the tables that can be used
wat are the fms that can be used etc
where this can be configuered,, or done thru ABAP

solved self. scheduled a backgound job. as no user exit and badi is available

Similar Messages

  • Automatic mail sending at good receipt

    Hello friends
    When a goods receipt against a PO (movement type 101) is done into any plant , an e-mail should be sent to ‘[email protected] ’ stating:
    Material # XXXX quantity XXX has been received into Plant XXXX (field WERKS) Storage Location XXXX (field LGORT) and the date received in.
    Plz suggest how to do this.
    what are the tables that can be used
    wat are the fms that can be used etc
    where this can be configuered,, or done thru ABAP

    Hi,
    1.create an enhancement project using enhancement number:MBCF0005..
    in CMOD and in the below fuction module exit you can add you logic to send the mail.
    <b>EXIT_SAPM07DR_001.</b> in INCLUDE ZXMBCU05 .
    2.you can get all the required data in the MSEG table.
    3. you can use the following fuction module to send the email.
    'SO_NEW_DOCUMENT_ATT_SEND_API1'
    below is the sample code..
    REPORT ZPAVAN_EXAMPLE.
    DATA: OBJPACK     LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
          OBJHEAD     LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
          OBJBINLIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
          OBJTXTLIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
          RECLISTLIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
          DOC_CHNGLIKE SODOCCHGI1,
          TAB_LINES LIKE SY-TABIX.
    PARAMETER P_EADDR LIKE RECLIST-RECEIVER.    "EXTERNAL E-MAIL ADDRESS
    DOC_CHNG-OBJ_NAME = 'SENDFILE'.
    DOC_CHNG-OBJ_DESCR = 'SEND EXTERNAL MAIL'.
    OBJTXT = 'LINE 1 OF MESSAGE'.
    APPEND OBJTXT.
    OBJTXT = 'LINE 2 OF MESSAGE'.
    APPEND OBJTXT.
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TAB_LINES.
    OBJPACK-DOC_TYPE = 'RAW'.
    APPEND OBJPACK.
    RECLIST-RECEIVER = P_EADDR.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA              = DOC_CHNG
              PUT_IN_OUTBOX              = 'X'
         TABLES
              PACKING_LIST               = OBJPACK
              OBJECT_HEADER              = OBJHEAD
              CONTENTS_BIN               = OBJBIN
              CONTENTS_TXT               = OBJTXT
              RECEIVERS                  = RECLIST
         EXCEPTIONS
              TOO_MANY_RECEIVERS         = 1
              DOCUMENT_NOT_SENT          = 2
              OPERATION_NO_AUTHORIZATION = 3
              OTHERS                     = 4.
    IF SY-SUBRC EQ 0.
      WRITE:/ 'E-MAIL MESSAGE SENT TO', P_EADDR.
    ELSE.
      WRITE:/ 'COULD NOT SEND E-MAIL TO', P_EADDR.
    ENDIF.
    thanks and Regards,
    Pavankumar

  • Standard Work Flow for Goods Receipt

    Hi All,
              I am working on Work flow is there any standard work flow for Goods Receipt?
    If so please help me in this regard.
    I found a BO BUS2017. Is this right one?
    Thanks.
    Ranganadh.

    hi,
    Refer to the link.
    Automatic mail sending for goods receipt
    Regards
    Sumit Agarwal

  • Create Automatic Reservation for Goods receipt of FG

    When an order is created, the components from the store are reserved automatically. It implies automatic reservation for good issue.
    What about AUTOMATIC reservation for goods receipt of finished product? Is it possible to make automatic reservation in PP for goods receipt of finished product, when finished product is ready?
    I know that manual reservation for goods receipt of finished product can be done by using MB21 (521).
    Thanks in advance.

    Your requirement is a little bit confusing...
    If you have production order, why do you need GR-reservation for the to-be produced material? The production order itself is a GR-MRP element nad you can post the GR agains it.
    If you don't have production order, I understand you need something to plan the GR.
    But it seems you want to have both the PrdOrd and the GR-reservation --> you will have the same thing twice in your system.

  • Automatic reservation for goods receipt

    Hi,
    Is it possible to make automatic reservation for goods receipt so that the store collects the material from PM? If yes, please explain.
    Thanks in advance...

    Greetings to all
    Just to add further, whenever you mention -ve qty in order & do goods movement in MIGO, you do reversal of goods issue only(262 movt) & its basically used for returning unconsumed items to the store. As far as cost is concerned its deducted from the actual cost of maintenance(expenses only) & i think cant be treated as revenue.  If we recall our basics of cost flow during goods movement, it heats the G/L A/C ( stock A/c & consumption A/C) as well as the cost element for capturing total cost.  So this -ve cost will be adjusted in the total cost (expenses) only. Pl correct me if I am wrong
    Regards
    Shakti

  • Automatic Purchase Order upon Goods Receipt 101/161

    Hi Guys,
    Hope everyone is well. I would like to know in as simple terms as possible, what is the use of Automatic Purchase Order upon Goods Receipt mvt 101 or 161. Can someone explain to me the purpose of this? or applicable in which type of business scenario?
    Because i think, if it is upon Goods Issue, then it is understandable, you would want to top up the stocks, but upon GR? Why?
    This is a non configuration question, just a business process question..

    >
    Nazrin84 wrote:
    > Hi Guys,
    >
    > Hope everyone is well. I would like to know in as simple terms as possible, what is the use of Automatic Purchase Order upon Goods Receipt mvt 101 or 161. Can someone explain to me the purpose of this? or applicable in which type of business scenario?
    >
    > Because i think, if it is upon Goods Issue, then it is understandable, you would want to top up the stocks, but upon GR? Why?
    > This is a non configuration question, just a business process question..
    This process is used in case of emergency when stock is required in the plant and we dont have time to first create PO and then get its approval and follow the normal process. In the case of emergency, we tell the vendor to deliver the material and on receipt of this material we take it into the system through GR and the corresponding PO is automatically generated.
    Usually this is option available in system, but it depends on the clients requirement whether they want this option available to end users or not. Mostly our clients prefer not to have this option enabled, as this way can lead to irregularities by the users.
    So they prefer to follow the normal process, but this process for above scenario is followed on war footings that way the GR takes place immediately when Goods are received.

  • Define Number Assignment for Goods Receipt/Issue Slips

    Hi Experts,
    please can you help in the creation of manual creation of transport request for the customizing activity "Define Number Assignment for Goods Receipt/Issue Slips": settings for assigning goods receipt/issue slip numbers upon goods movements (MM) or deliveries (LE-SHP)?
    Customizing for this functionality is composed by the following points:
    1. functionality activation at plant level
    2. number range group/interval code assignment
    3. Groups and intervals creation
    4. Plant / Storage Location / Movement type combination assignment to number range group.
    Customizing request is automatically created for points 1, 2, 4, but NOT for point 3 where you have to create Groups, Intervas and assing each others.
    You receive a message from SAP that you have to insert the relevant object manually into transport request.
    Please can you tell me exactly what I have to put into transport request as object:
    - Program ID     (I think R3TR)
    - Object Type
    - Object name
    and any other relevant information with all the details.
    Thank you very much
    Kind Regards
    Andrea.

    Hi
    You need to create the transport request by selecting the required number & clicking on the trnsaport icon, then a prompt for transport request will be displayed, there you can create the request & move it to production.
    Reward points if usefu;
    Thanks & Rgards
    Kishore

  • Error "Post the HUs for goods receipt so that they can be transfer "

    Hi Gurus,
    I am facing a problem while doing PGR the inbound delivery,
    I am moving stock from one SLOC (AY02- HU Managed) to Another SLOC
    (AA99-
    Non HU). Inbound delivery is created .
    I did automatic packing and packed the HU generated and saved the
    inbound delivery. While doing PGR I am getting error "Post the HUs for
    goods receipt so that they can be transfer posted Message no.
    HUFUNCTIONS254". Kindly Assist
    Steps for Reconstruction    
    1) MB1B post with 311 movement type.
    2) delivery gets created.
    3) pack the HU's automatically and HU's were generated, save the inbound.
    4) Do PGR .
    Regards
    Gopi

    Hello,
    There is a "concept problem". You are not doing a reception, you are posting an issue. After running MB1B system should create an Outbound delivery.
    In a HU-managed storage location you should use existing HU in order to pack the delivery. Instead of generate new HUs in the OD, try to pack existing ones.
    Regards

  • IDOC - Automatic Mail Sending

    Hi All,
    Basically I need to remove the automatic mail sending feature in the IDOC, please give me the solution, whether  it is standard functionality, or is there any user exit to avoid.
    If it is a Standard functionality then mention the Std. Program name or
    If it is from userexit then plz mention the Exit name.
    Thanks In Advance.

    think u need to check tcode swu3 for automatic workflow customizing and check in we40 (error AND STATUS PROCESSING) whether the processing code is assigned to the workflow task.
    if it is assigned,the workflow will be automatically triggered and the mail will be sent to the user by itself.
    ALE error handling uses workflow. A standard task is provided for each message type. Task TS20000051 is used for all BAPIs.
    Workflow functions as follows:
    A task (work item) is generated for the error handling and stored as a message in the inboxes of the employees responsible.
    If one of these employees processes the work item, the standard task method for error handling is started. The user can, for example, restart IDoc processing.
    If the IDoc is processed successfully, the work item is deleted from the inboxes of all the employees involved.
    For this procedure to function, the employees responsible for a particular message type and partner (sender or receiver) must be defined as follows:
    1. A hierarchy of organizational units (for example, "sales office") and positions (for example, "customer officer for customer X") is created and employees are assigned to it.
    2. The standard tasks for error handling (for example, an error related to an inbound sales order) are assigned to the relevant organizational units or positions (for example, "sales office").
    3. The organizational unit, position or employee responsible for dealing with the error are specified for each partner and message type in the partner profiles.
    If an error occurs, the system determines:
    1. The employees responsible using the staffing schedule of the organizational unit or position linked to the standard task.
    2. The employees defined in the partner profiles (using position, user ID, or organizational unit).
    3. The employees appearing in both groups represent those who will receive a work item in their inboxes.
    Please give me reward point If it is useful
    Thanks
    Murali Poli

  • O/p type  for good Receipt Note

    Hi.
    what is the output type for Good Receipt Note?
    How can we assign it?

    Hi,
    1. Use transaction MB03, Enter the material document and material year.
    2. click button 'DETAILS FM ITEM'.
    3. Now Click button MESSAGES.
    4. Here you have to assign a output type.
    5. Click further data, select value 'Send with application own transaction' to field 'DISPATCH TIME'.
    6. Use transaction MB90, give the output type assigned for the material document and year, u will get the printable output format for goods reciept.
    Output type WE01, WE02, and WE03 can be used.

  • No transfer exists for goods receipt reference(From ECC to SNC )

    Hi All,
    We are facing one issue in ECC and SNC while transferring Goods Reciept Information to SNC via ECC.
    We recieved ASN information from SNC and did Goods Reciept against ASN via Inbound delivery.
    Now when we used the report RSMIPROACT to transfer Goods Reciept Information it is giving message
    "No transfer exists for goods receipt referenc".
    I did all setting like
    I ticked check box  for Goods Reciept Reference and Delivery03.
    Source list is maintained and also Message type STPOD is configured for Logical system.
    Please can some one help me in telling me why system is not selecting any PO for transfer of GR information even tough Goods Reciept is done for PO.
    OR
    Is there anyotherway where we can send the Goods Reciept Information from ECC to SNC
    Thanks and Regards
    Raghavendra Pai

    Hi Raghavendra ,
    Make sure in We20 following setting is required:
    Go to your partner type LS (logical system) and create outbound parameter:
    Message Type:STPPOD
    Receiver Port:<Your port number> which connects to PI from ECC
    Transfer IDoc Immed checked with Output mode=2
    Basic type:DELVRY03
    Checked Cancel Processing After Syntax Error.
    No other setting is required in above outbound parameter.
    Go to RSMIPROACT report
    You need enter following data:
    1)Plant
    2)MRP area of plant
    3)If want for all material then enter * or enter list of materials
    4)Enter target system (SNC system)
    5)checked only Goods receipt Reference
    6)In execution parameter select Update run radio button
    7)Log select log complete report
    8)IDoc type DELVRY03
    Lastly main thing is GR date enter GR date.
    When you execute RSMIPROACT report you will get this message "No transfer exists for goods receipt reference" then it will ask whether you want to change your selection click on <b>NO</b>.
    Now check whether IDoc is got triggered or not?
    Let me know for any clarification.
    Thanks,
    Nikhil

  • Output type for goods receipt

    Hi guys,
    Can any one lemme know what is the output  type we can use for goods receipt- for generating a  goods receipt smartform output?
    and can u also lemme know the standard print program also.
    if u have written any zprint program plz send it ASAP.
    thanks n regards,
    Bhargava.

    u can see the output types for Goods Receipt in Transaction NACE. Application M1
    Output type        Name
    CHKL     Count List ( Program RTCHECKL, form RT_CHECK_LIST)
    GRPL     Pallet Sticker ( Pro RTCHECKL, form RT_PALLET_LABEL)
    The Form names mentioned are SAPSCRIPTS not smartforms.
    Also Bhargava, chk out with ur Consultant wat output type suits ur requirement coz there r multiple options as u can see for urself in NACE under Applications M1/ME.
    Hope it helps.
    Regards,
    Bikash
    Message was edited by: Bikash  Agarwal
    Message was edited by: Bikash  Agarwal

  • Report for vendor no., vendor name for good receipt documents on KSB1

    Hello,
    My client needs vendors on KSB1 report. I told them about offseting  account, but it doesn't show vendor for good receipt documents.
    Is there any place else they can view vendor, vendor name for those good receipt documents .
    Any MM report or AP report .
    Thanks,
    T.G

    Hi,
    Please go to FBL1N, In Dynamic Selection give document as "WE", this will give and enable Purchase Order Number
    This will give you Vendor Name, Purchase Order and  FI Document number or u can try MB51, there you will not get Vendor Name, but you will get Vendor Code, Material Document Number and Purchase Order Number
    Br,Vivek
    Edited by: View_taurian on Oct 22, 2011 12:01 AM

  • BAPI needed  for  Goods Receipt Purchase Order(Transaction : MIGO)

    Hi all,
    We have a requirement where in we need to post the documents throuh BAPI for Goods receipt Purchase order(Transaction: MIGO).
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    Hi,
    use 'BAPI_GOODSMVT_CREATE'
    Check this sample.
    code
    REPORT ZRICH_0001 .
    Structures for BAPI
    DATA: GM_HEADER TYPE BAPI2017_GM_HEAD_01.
    DATA: GM_CODE TYPE BAPI2017_GM_CODE.
    DATA: GM_HEADRET TYPE BAPI2017_GM_HEAD_RET.
    DATA: GM_ITEM TYPE TABLE OF
    BAPI2017_GM_ITEM_CREATE WITH HEADER LINE.
    DATA: GM_RETURN TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA: GM_RETMTD TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    CLEAR: GM_RETURN, GM_RETMTD. REFRESH GM_RETURN.
    Setup BAPI header data.
    GM_HEADER-PSTNG_DATE = SY-DATUM.
    GM_HEADER-DOC_DATE = SY-DATUM.
    GM_CODE-GM_CODE = '04'. " MB1A
    Write 971 movement to table
    CLEAR GM_ITEM.
    MOVE '412' TO GM_ITEM-MOVE_TYPE .
    MOVE 'Q' TO GM_ITEM-SPEC_STOCK.
    MOVE '3800533484' TO GM_ITEM-MATERIAL.
    MOVE '1' TO GM_ITEM-ENTRY_QNT.
    *MOVE 'PC' TO GM_ITEM-ENTRY_UOM.
    MOVE '1060' TO GM_ITEM-PLANT.
    MOVE '0007' TO GM_ITEM-STGE_LOC.
    *MOVE '0901' TO GM_ITEM-MOVE_REAS.
    MOVE 'P203601001' TO GM_ITEM-WBS_ELEM.
    MOVE 'P203601001' TO GM_ITEM-VAL_WBS_ELEM.
    APPEND GM_ITEM.
    Call goods movement BAPI
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    GOODSMVT_HEADER = GM_HEADER
    GOODSMVT_CODE = GM_CODE
    IMPORTING
    GOODSMVT_HEADRET = GM_HEADRET
    MATERIALDOCUMENT = GM_RETMTD
    TABLES
    GOODSMVT_ITEM = GM_ITEM
    RETURN = GM_RETURN.
    IF NOT GM_RETMTD IS INITIAL.
    COMMIT WORK AND WAIT.
    CALL FUNCTION 'DEQUEUE_ALL'.
    ELSE.
    COMMIT WORK AND WAIT.
    CALL FUNCTION 'DEQUEUE_ALL'.
    ENDIF.
    WRITE:/ GM_RETMTD.
    LOOP AT GM_RETURN.
    WRITE:/ GM_RETURN.
    ENDLOOP.
    [/code]
    Also check the Bapis
    BAPI_PO_CREATE --> To create Purchase Order
    BAPI_PO_CHANGE --> To change Purchase Order
    BAPI_PO_GETDETAIL --> Todisplay Purchase Order
    Regards,
    Raj.

  • Cant able to do UD for Goods Receipt Inspection against Purchase Order

    Hi Experts,
    I am facing problem while doing UD for Goods Receipt Inspection against Purchase Order.
    The Problem is,
    "Selected set code does not exist, or data entered is incomplete
    Message no. QV121
    Diagnosis
    Code  in code group * (selected set 1000 in plant ) does not exist.
    Procedure
    Enter a valid combination or complete combination, or make sure that the combination is available in the selected set."
    And the Result Recording for Inspection lot is completed.
    kindly suggest..
    Thanks in Advance,
    Naveen

    Hi Naveen,
    1.     Go to QCC0 > Quality inspection  >  Inspection lot creation  > Maintain Inspection Types > Select 01 (or the type which you are using) and double click on it.
    2.     Check what code is maintained in UD Selected Set
    3.     Create the same code in QS51 for your plant.
    Regards,
    Anand Rao

Maybe you are looking for