cancel
Showing results for 
Search instead for 
Did you mean: 

Error while saving VI02 Shipment Cost

Former Member
0 Kudos

Hi,

We are testing here transportation module in new company code.

While saving VI03 Shipment cost, system is not creating Purchase order, as item catagory D-Service.

It is giving error that, Document type NB is not defined for Starnd PO.

But we have created new PO document type FR01 instead of NB.

Is there any posibility to assign PO Document type FR01 for shipment cost?

Waiting for your reply.

Thanks,

Samir Bhatt

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

When I am creating Shipment Cost the system should create a Purchase Order,But its not working do have any idea.

Regards

Partha

Former Member
0 Kudos

I am trying to create the shipment cost document,when i give the shipment no. the system says see log ..Even though i proceed a head ...I click on new item it asks for Ref Item no,

and item category.I am clear abt the item category but what is this reff item no.

could u pls guide me

regards

Partha

Former Member
0 Kudos

Hello Samir,

the purchase order is generated with report RV54POCR, which is called as soon as no suitable purchase order is available and the item category is set for po generation.

Which document type is used for the purchase order generation depends on default po type assigned to the transactions ME21N/ME21. Please check the following code of the generation report:

  • Get Default PO type

  • CALL FOR TCODE ME21N FIRST, IF NOT FOUND, CALL FOR ME21.

SELECT SINGLE * FROM t160 WHERE tcode EQ 'ME21N'.

IF NOT sy-subrc IS INITIAL.

SELECT SINGLE * FROM t160 WHERE tcode EQ 'ME21'.

ENDIF.

Depending on your business needs you are able to assign a different type or to use the corresponding user exit which is called short after the above coding.

I hope I was able to help you with this issue!

Regards,

Tom