cancel
Showing results for 
Search instead for 
Did you mean: 

PGI date from shipments activity profile

0 Kudos

When processing a shipment, there are different status :Planning, Check-in,Loading-start.. And it is possible to assign activities (Activity profiles) at these status.

We have configured to complete the Post Goods Issue activity when executing "Shipment Completion", updating the Execution date with the real date the transport has been made.

We have some offline warehouses (not connected to SAP), that we report the activities the day after.

And we found the problem that when we update the Execution date to the actual date on the "Shipment Completion" Status the PGI is done, but the updated date is not taken into account, and is posted with the current date.

I wish if anybody can help with their experience how can we configure the system to Post the Goods Issue of the deliveries with the date updated in the shipment.

Thanks in advance!

Jorge

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hola Jorge,

The trick is to update the Actual Goods Issue date (field LIKP-WADAT_IST in delivery header), before posting the goods issue (manually or collectively using execution profile in the shipment), then the system will use it as goods issue date.

As I see you are using external warehouses, the logical thing to do is at the same time you update the delivery with the real quantity served by the logistic agent & to update the actual goods issue date at the same time before goods issue of course.

In short, the "actual" goods issue date can be used to force the "real" goods issue date.

Best Regards,

Franck

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Jorge

I was reading through this thread and I have a similar requirement for my client. I was wondering if you were able to identify a suitable user exit to update the actual PGI date on the delivery based on the shipment completion date (manually entered) or how you were able to resolve this. Your reply would be much appreciated.

Thanks

Susheel Bhimasani

0 Kudos

No, we have not found any solution. As most of the time the goods issue date is the same as the actual date, there's no problem. If the date is differente, the user changes it manually in the delivery before processing the transport document.

former_member204513
Active Contributor
0 Kudos

Dear Jorge,

I don't think it is possible through configuration.

Once the PGI done with shipment completion date, the date of the PGI will not get reflect if you change the shipment completion date after wards.

Try with some enhancements with help of ABAPer

Here you can find some BADI's you can go through these

Business Add-In for Posting Goods Movements

Use

Application component: LE-SHP-GI

You can use the Business Add-In LE_SHP_GOODSMOVEMENT to influence the data at the interface between delivery processing and goods movement (goods issue/goods receipt).

The Business Add-In LE_SHP_GOODSMOVEMENT is called at the following points:

Post goods issue for outbound delivery

Post goods receipt for inbound delivery

Standard settings

This Business Add-In is not active in the standard system.

The Business Add-In can be used more than once.

Activities

To activate the Business Add-In, you must create an active implementation. To do this, go to Customizing for the component Logistics Execution and choose Shipping -> Business Add-In.

For more information about this procedure, see the SAP Library under

Basis Components -> ABAP Workbench -> Changing the SAP Standard -> Business Add-Ins -> Implementing Business Add-Ins.

Note that the Business Add-In can be used multiple times and therefore all active implementations are called and run through.

Example

You can influence the data at the interface that was transferred from the delivery as follows:

Change existing data

Check existing data

Determine missing data

Add missing data

These changes have no effect on the fields in the delivery item or the delivery header. The changes do affect the input structures (IMSEG and IMKPF) of the function module for creating goods movements (MB_CREATE_GOODS_MOVEMENT).

Further notes

Documentation for BAdI Interface IF_EX_LE_SHP_GOODSMOVEMENT

I hope this will help you,

Regards,

Murali.

0 Kudos

Thanks for your reply. I only have one doubt about your reply.

On your reply "Once the PGI done with shipment completion date, the date of the PGI will not get reflect if you change the shipment completion date after wards" when you reply "afterwards", I do not mean to change the date of the PGI after the PGI has been done.

I mean to take the date in the shipment (updated manually, different to the current date), prior to execute PGI.

When you save the shipment, via activity profile, you have two options to configure PGI:

a- PGI inmediately

b- PGI in backgroud: Execute program rv56bgpi in background.

Option a- executes PGI with current date, not with the date in the shipment (This is what I want to change)

Option b- in the selection screen of the program I have the option to set the "Goods Issue Date" but I do not know how to configure the variant to take the date from the shipment -> This option would be valid as well.

Thanks for your help

former_member204513
Active Contributor
0 Kudos

Dear Jorge,

Option b- in the selection screen of the program I have the option to set the "Goods Issue Date" but I do not know how to configure the variant to take the date from the shipment -> This option would be valid as well.

I don't think through variant you can tranfer the changed date (i.e in the shipment) as input to the PGI date which is in the Back ground variant selection screen.

You can try with enhancements with the help of ABAPer, check with Background program RV56BPGI is there any way to capture the changed date from the shipment dopcument to the Goods Issue date field which is available in the background Variant.

I hope this will help you,

Regards,

Murali.