cancel
Showing results for 
Search instead for 
Did you mean: 

Using Projectcodes in OITM and transfer the projectcode to the Documentslines

former_member681242
Participant
0 Kudos

Hi Everyone,

is there a standard way within SAPB1 to set an Projektcode (fincal project not the projectmanagment) within an item and transfer the projectcode to new Documentlines automatically when a new Document is created ?
Or do I have to use UDV ?

Thank you for your help!
Kind regards

Tobias

Accepted Solutions (1)

Accepted Solutions (1)

Johan_H
Active Contributor

Hi Tobias,

It can be done with a Formatted Search, but only if the document is entered into B1 manually.

Adapt and save this query:

SELECT i.[FieldWithTheProjectCode]
FROM OITM i
WHERE i.ItemCode = $[$38.1.0]

and then create a Formatted Search in the relevant field in the document line. Choose option 'Search in Existing User-Defined Values according to Saved Query', and select the query you just saved. Set 'Auto Refresh' and 'When exiting altered column', and column 'Item No.'. Finally choose option 'Display Saved User-Defined Values'.

If your documents are entered automatically, you will need to adapt the code of the program that imports the documents.

Regards,

Johan

former_member681242
Participant

thanks for the support

Answers (1)

Answers (1)

LoHa
Active Contributor

Hi Tobias,

you could use FMS (formatted search) for this case, I think

regards Lothar

former_member681242
Participant
0 Kudos

thanks for the support