cancel
Showing results for 
Search instead for 
Did you mean: 

Shipment Output determination with INCO1 as key

former_member611006
Active Participant
0 Kudos

Hi guys,

How can I add the field INCO1 as a key for the Shipment output determination (KOMKBV7) ?

I found the field in the field catalog KOMB, but how can I populate this field and use it as a key in the VV72 ;

Thank you.

Regards,

David

Accepted Solutions (1)

Accepted Solutions (1)

shashi_thakur
Contributor
0 Kudos


Hi David,

There are two steps to using a new field in the Access Sequence.

1) Adding it to the communication structure- This you have already done.

2) Populating it in the User-exit.

   This needs to be done

   Populate it in Function Module EXIT_SAPLVCOM_007 using custom logic.

Pseudo code

case com_object.

when 'VTTK'.

when 'VTTS'.

COM_KBV7-ZZINCO1  = COM_VTTS-INCO1.

endcase.

Thanks & Regards,

Shashi

former_member611006
Active Participant
0 Kudos

Hi Shashi,

Include ZXVCOU07 has been filled, do I need to activate it ?

DATA str_vttp TYPE vttp.
DATA str_likp TYPE likp.

SELECT SINGLE * FROM vttp INTO str_vttp
  WHERE tknum = c_komkbv7-tknum.

SELECT SINGLE * FROM likp INTO str_likp
  WHERE vbeln = str_vttp-vbeln.

CASE i_object.
  WHEN 'VTTK'.
  WHEN 'VTTS'.
    c_komkbv7-inco1  = str_likp-inco1.
ENDCASE.

Regards,

David

shashi_thakur
Contributor
0 Kudos

Hi David,

Yes, you need to create a CMOD Project for the same and add the User-exit FM in it and activate it-only then will the system recognize the exit and the value be populated in the new field.

Also, the value of INCO1 is already available in com_vtts-inco1 in the user-exit. So you can use that directly without doing a select from the LIKP table.

Thanks & Regards,

Shashi Thakur

former_member611006
Active Participant
0 Kudos

Hi Shashi,

thank you a lot, it's working perfectly now.

Thank you all for the support, points awarded!

Regards,

David

Answers (1)

Answers (1)

mahendra_jani3
Contributor
0 Kudos

Hi David,

In below path:

SPRO--> Logistics Execution --> Transportation --> Output Control --> Maintain Output Determination for Shipments --> Maintain Condition tables --> Field catalog: Messages for transportation

Here click on New entry, Select your field INCO1 from the selection and SAVE.

It will be available for you to create Condition table for Output determination.

If you are facing any other issue then let us know.

Regards,

MJ.

former_member611006
Active Participant
0 Kudos

Hi Mahendra,

thank you for the answer.

I added the Incoterm1 to the field catalog and the condition table. I add it the Access sequence :

TPLST  KOMKBV7 TPLST TransportPlanningPt

SHTYP  KOMKBV7 SHTYP Shipment type

INCO1  KOMKBV7 INCO1 Incoterms

KUNWE  KOMKBV7 KUNWE Ship-to party

I created the condition record in the VV72 for the Output, but it won't be generated in the Shipment.

Regards,

David

mahendra_jani3
Contributor
0 Kudos

Hi David,

Now, in VT02N t-code, When you click on GO TO --> Output.

It takes you to the next screen there , you can see symbol of . click on the same.

That part will give you the reason why your condition table has not triggered condition record maintained.

if still it is not being resolved then take Screen shot after clicking on your output and condition table and send the same here so we can do further analysis.

Regards,

MJ.

former_member211104
Active Participant
0 Kudos

Hi David,

Also Did you assign the new created Access sequence to your output type for which you want to maintain condition record ?

regards

Sundar

former_member611006
Active Participant
0 Kudos

Hi Mahendra,

her is a screenshot of the Analysis:

Regards,

David.

former_member611006
Active Participant
0 Kudos

HI Sundar,

yes I did.

Regards,

David

Former Member
0 Kudos

Hi David,

Request you to check document structure table name in your access sequence setting. If it is wrong than change it and than try.

Refer below mentined screen shot for your referance.

Regards,

Haresh Panara

srinu_s1
Active Contributor
0 Kudos

Please maintain the Inco terms  field in the document so that it will trigger the output.

Seems to be you have not maintained the inco term field in the customer master hence it was not copied into sales document.

thanks,

Srinu.