Skip to Content

Hello All,

In most of the industries there is a concept of issuing Free Goods to prospective Customers. Also whenever new Products are introduced in markets, free samples are given to existing Customers.

We can create Free Good Sales Order in SAP, in standard system Delivery Block is proposed in this Sales Order, which an authorized person can remove & subsequently Delivery / PGI is created.

Now, imagine a scenario where the Authorized person (to remove the Delivery blocks in Free Goods Sales Order) is very busy / travelling & not having access to SAP. Even if he has access to SAP, Sales Managers & Leads generally do not have time to login to SAP system & remove the Delivery blocks in such Free Orders which may be in hundreds every day. Also given these days of Smartphones & Tablet PC’s, it is difficult for Sales Managers to physically login to SAP system from their desktops / Laptops.

To resolve the above issue, we developed a ABAP code & couple of BAPI’s to control Free Good Sales orders.

1.   Whenever a Free Good Order is created, system proposes Delivery Block (via inserting Delivery Block in Sales Document Type)

2.   With help of Basis Team, we removed the Authorization for Activity 43 (Release) for Authorization Object V_VBAK_AAT for ZFRS (Free Goods) Sales Order Types. Due to this, nobody can release the delivery block in Free Goods Sales Order through T-Code VA02. (Except for couple of Master SAP User ID’s

3.   A BAPI was created which fetches that basic Sales Order data like: Sales Document Number, Order Date, Sales Area, Sold-To-Party, Material Number, Description, Sales Unit, Quantity, Value, Plant, etc

1.JPG

4.   The client’s Third Party application is Lotus Notes & their developers scheduled the Lotus Notes application to call the above BAPI every 30 minutes to fetch the Free Gods Sales Order created in last 30 minutes. Subsequently a workflow is triggered in Lotus Notes & based on total value of the Order the multiple level of approvals are requested. Once the final approval (Accept / Reject) is received in Lotus Notes, it sends the data back to SAP.

5.   To fetch the incoming data from Lotus Notes, another BAPI was created which receives the Sales Order Number & Accept / Reject data.

2.JPG

6.   If the incoming data is A (Accept) the BAPI removes the Delivery Block in Free Goods Sales Order.

This above development provides freedom to Sales Managers to approve the Free Goods Sales Order while travelling & without login to SAP system.

Thanks,

Jignesh Mehta

To report this post you need to login first.

18 Comments

You must be Logged on to comment or reply to a post.

  1. ' MoazzaM '

    Jignesh

    This is v ery good approach and really helful for others. I also had once similar requirement and I suggested them to create android app for this which could be install on every android device. But lotus note app and use of BADIs is also useful. Thank you for sharing

    Thank$

    (0) 
    1. Jignesh Mehta Post author

      Hello Moazzam,

      Thank you.

      Yes. Due to usage of BAPI’s the Z-Development in SAP is reduced to a large extent. In the above case the Z-development in SAP is limited to removing Delivery Block in SAP from background.

      All the rest of workflow & approval process is desinged & implemented in Lotus Notes. Also Lotus Notes is available almost all the employees of the client.

      Thanks,

      Jignesh Mehta

      (0) 
      1. ' MoazzaM '

        True. But in my this company Lotus note is out dated. We are not using Lotus Note anymore and are shifted to sharepoint now. But still lotus note is used in many companies but it depends which legacy system you are using. If you are on lotus note then you can develop app and workflow in it or you can also use PHP or android etc. But methodoly will be same and this document will be helpful in either case.

        Thank$

        (0) 
  2. Suman Sardar

    Nice idea Jignesh sir,We have done some similar development in our organization but in PHP as we don’t have Lotus notes.Keep sharing I really learn a lot from your post.

    Thanks,

    Suman$

    (0) 

Leave a Reply