cancel
Showing results for 
Search instead for 
Did you mean: 

FORWARDING AGENT MANDATORY

Former Member
0 Kudos

Dear guru

I have this problem:

When I create a shipment, because of the fact that the delivery comes from Subcontracting, The Forwarding agent is empty.

I have 2 kind of issues:

1. How to copy the forwarding agent from the partner schema of the subcontracting order INTO the delivery, in order to have it filled in the shipment creation?

2 How to avoid that a user can PLANNING the shipment without Forwarding agent (a chech that when the user select button PPLANNING, if the forwarding agent is empty, an error messagi will appear.

Regards

Alessandra

Accepted Solutions (1)

Accepted Solutions (1)

shashi_thakur
Contributor
0 Kudos

Hi Alex,

If you wish to display a message when the Forwarding Agent is Empty and the Planning button is executed then you need to enhance the code. The Flow of the code on pressing of the Planning button is as follows-

When the Planning button is pressed, system proceeds to check if a button related to Status change has been executed.

It then proceeds to check whether the change is invalid or not.

Once the check has been done, it proceeds to modify the Shipment Header. Within this process, it calls the FM SD_SHIPMENT_STATUS_PLANNED , wherein it calls the copy control routine to copy data from the Deliveries.

Within the FM, there is another FM SD_SHIPMENT_COPY_DELIVERY_DATA, this has a user-exit as shown below. You can apply your logic here to show the pop-up and ask user to fill in the Forwarding agent if it is missing/blank/not copied from Delivery either.

This was the custom process.

Alternatively you can use a more simpler approach of using a VOFM copy control to transfer the Forwarding Agent data from the Sub-contracting Deliveries into the Shipment. Because based on your requirement you want the pop-up if the Forwarding agent is not filled in the Shipment-But if you fill the same in the first place then po-up won't be needed. There is a standard routine to copy the Forwarding agent. You can have a look at it an create a custom one based on your requirements.

Regards,

Shashi

Message was edited by: Shashi Thakur

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Alex,

You can do the partner determination for making farwaording agent as mandatory function but as per the some delivery terms (incoterms) there is no need of shipment for example EXW - Exworks means customer him self responsible for the shipment, in this case no need of forwarding agent assignment at DN in partners function.

If you make this mandatory system will ask forwarding agent for all the incoterms.

Menupath: IMG - SD - BASIC FUNCTION - PARTNER DETERMINATION - SETUP PD - Set Up Partner Determination for Delivery

for 1st and second requriement you can discuss with your development team through ABAP you can achive this.

1. While creating the DN for incoterm Ex: CFR if there is no forwarding agent maintained in the header - partner system will give the error message

2. While creating the Shipment also same error message you can incorporate through ABAP - when the user will click on planning if there is forwarding agen assing in DN system will give error message.

If you incorporate 1st development at DN level no need the second development at DN level only your issue will be resolved.

Best Regards,

MH

Former Member
0 Kudos

Hi Alex,

can you explain in more detail the process?

Not clear "When I create a shipment, because of the fact that the delivery comes from Subcontracting, The Forwarding agent is empty" When should be filled the forwarding agent?, in SO, delivery? Do you keep forwarding agent in customer master?

Regards,

JM