cancel
Showing results for 
Search instead for 
Did you mean: 

APO Pegging area error for stock upload program

Former Member
0 Kudos

Hi,

I am getting an error in a custom development while calling the BAPI: 'BAPI_STSRVAPS_SAVEMULTI'

Error:

-


Pegging area for material 12345678 location 1234 not available

call function 'BAPI_STSRVAPS_SAVEMULTI'

exporting

logical_system = v_own_logsys

commit_control = c_commit_control

planning_mode_usage = c_planning_mode

tables

stock = l_i_stock

return = fp_i_return.

The error is 'APO Pegging area for material 12345678 location 1234 not available'.

I know the raeson of the error ie;

  • Satz von DB lesen

SELECT * INTO ls_pegkey UP TO 1 ROWS

FROM /sapapo/pegkey

WHERE matid = lv_matid

AND locid = lv_locid

AND simid = lv_simid

AND accid = ev_accid

AND plsec = iv_plsec.

ev_pegid = ls_pegkey-pegid.

ev_atpancguid = ls_pegkey-pegid.

ev_deltaancguid = ls_pegkey-pegid.

ENDSELECT.

IF sy-subrc = 4.

  • Pegid existiert nicht

IF iv_no_create = gc_true.

  • .. und muss nicht erzeugt werden!

CLEAR ev_pegid.

EXIT. "... und tschuess

ENDIF.

What I need to know is the what master data and transactions I need to populate to get across this error.

regards

Aveek Ghose

00441904604045

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anand,

Yes I went to Virginia Tech and George Mason University. I will contact you soon.

regards

Aveek

Former Member
0 Kudos

Aveek - this is not about your query on this website. I was just wondering if you went to school at Virginia Tech and later to GMU. If you did, can you please get in touch with me at "megram@gmail.com".

Thank you, and sorry for being off topic.

Anand