Skip to Content
author's profile photo Former Member
Former Member

APO Pegging area error for stock upload program

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2004 at 12:02 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2004 at 07:50 AM

    Hi Anand,

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

    regards

    Aveek

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.