Hi Sigrid,
When Using BAPI_REQUISTION_CREATE, I was able to add the delivery date. But I'm not able to add following fields in purchase requistion: Prodct Type of group(MEREQ3319-PRODUCTTYPE), Start date for period of performance(MEREQ3321-STARTDATE), End date for period of performance(MEREQ3321-ENDDATE) and User Name in User Master Record(ZZBUYONBEHALFOF).
What you suggest I can do ? Should I create another script for add this missing fields?
BR,
Ketrine Giha
------------------------------
Ketrine Giha
Consultant
PepsiCo (Business Solutions Group)
Winston Salem
------------------------------
Original Message:
Sent: 05-23-2024 19:36
From: Sigrid Kok
Subject: ME51N - Direct Script with BAPI_PR_CREATE not showing delivery Date
Hi Ketrine
the date I've used is in Requisition_Items Deliv_Date

I can't comment on any Z fields - those are custom. You'd want to check with your Basis team.
The closest I can get is with the standard field

I built the attached in my ECC system to support multiple account assignments, and I'm not sure you care about that, but at least it will show you an example.
Hope it's helpful,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 05-23-2024 18:12
From: Ketrine Giha
Subject: ME51N - Direct Script with BAPI_PR_CREATE not showing delivery Date
Hi,
I need guidance for finish the creation of a direct script for create purchase requisition
I created a direct script using BAPI_PR_CREATE, but is not uploading delivery date in the purchase requisition, can someone help me understand the reason? and guide me how to find following field: User Name in User Master Record(ZZBUYONBEHALFOF)
I tried to use BAPI_REQUISTION_CREATE, and with that I was able to upload delivery date, but didn't find all needed fields as product type group and User Master Record(ZZBUYONBEHALFOF)
BR,
Ketrine Giha
------------------------------
Ketrine Giha
Consultant
PepsiCo (Business Solutions Group)
Winston Salem
------------------------------