cancel
Showing results for 
Search instead for 
Did you mean: 

Adress on Purchase order

Former Member
0 Kudos

Hi all,

We have come across a problem when the ADRC ADDRNUMBER counter in ERP got full (the standard max limit is 49 999 999). Analysis shows that most of those are empty address rows and created by one-time vendor.

In our case the mass of addresses is probably coming with the Purchase order data. Purchase order holds a umber of partners and there are addresses on PO itself.

Has anyone come across similar problem or does anyone have advice for us how to make the process better in a sense that the counter wouldnt reach max again (its atm 99 999 999)

can the process/software be customized in a way that the adress (country) would not be needed on PO?

Thanks for replies!

Seidi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

we discovered the cause of our poblem being a mistake in compiling custom IDOC message. nothing general i think.

in standard module IDOC_INPUT_PORDCR:

IF E1BPEKKOA-VPER_START

IS INITIAL.

CLEAR PO_HEADER_ADD_DATA-VPER_START.

ENDIF.

IF E1BPEKKOA-VPER_END

IS INITIAL.

CLEAR PO_HEADER_ADD_DATA-VPER_END.

ENDIF.

in our custom module Z_IDOC_INPUT_PORDCR:

  • Validity field should be filled in po_header_add_data

e1bpaddress = idoc_data-sdata.

MOVE-CORRESPONDING e1bpaddress

TO po_address.

move: e1bpaddress-date_from to

po_header_add_data-vper_start,

e1bpaddress-date_to to

po_header_add_data-vper_end.

VPER_START ja VPER_END are taken from a wrong segment and thus someway create a address line while creating Purchase Order.

Seidi