cancel
Showing results for 
Search instead for 
Did you mean: 

'BAPI_POSRVAPS_SAVEMULTI3 giving me 'Invalid location type 1010 ' error

manali_gunjal
Explorer
0 Kudos

I am using BAPI 'BAPI_POSRVAPS_SAVEMULTI3'

to create Create and Change External Procurement Orders.

I have given folloiwing i/p:

LOGICAL_SYSTEM GDECLNT200

ORDER_TYPE 1

EXT_NUMBER_ASSIGNMENT X

COMMIT_CONTROL E

PLNG_VERSION 000

PLANNING_MODE_USAGE 0

Receipt Table:

ORDER_NUMBER 0211

ITEM_NUMBER 000010

SCHED_LINE 0000

PRODUCT GPBIN01

LOCATION 0000830001

LOCTYPE 1010

QUANTITY 1,000

DELIVERY_DATE 27.12.2010 00:00:00

FIXED

ATPCAT EA

PROC_TYPE 0

ORDER_QUANTITY 1,000

Receipt_x Table:

ORDER_NUMBER 0211

ITEM_NUMBER 000010

SCHED_LINE 0000

PRODUCT X

LOCATION X

LOCTYPE X

ATPCAT X

ORDER_QUANTITY X

Its giving me following error:

Invalid location type 1010 for this function

Please help me to solve this issue.

Thanks & Regards,

Manali

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Try to fill the same data without location type as a input to same BAPI.

manali_gunjal
Explorer
0 Kudos

Thanks for your help

Former Member
0 Kudos

Hi Manali,

To me, the BAPI BAPI_POSRVAPS_SAVEMULTI3 is for external procurement orders i.,e vendor ( location type 1011) and a receiving plant (location). Subcontracting locations(location type 1050) are also supported.

Location type 1010 is customer and what you are creating is like a VMI order.

Thats the reason, probably, you are getting an error.

For sales orders (like in VMI scenario), the BAPI BAPI_SLSRVAPS_SAVEMULTI2 is useful.

regards

Datta

manali_gunjal
Explorer
0 Kudos

Hi Dutta,

Thanks for your help.

My requirement is I need to read forecast from DP and need to upload it as receipts(Preq) in SNP. And In this all locations have loctype as '1010'. Can you please suggest me solution for this?

I am reading forscast from DP by using 'BAPI_PBSRVAPS_GETDETAIL2' and for Uploading these forecast numbers as receipts (preqs) I am using 'BAPI_POSRVAPS_SAVEMULTI3'.

Thanks & Regards,

Manali