Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error while creating customer master data.

Former Member
0 Likes
1,180

Hi,

I am trying to create customer master record using XD01. I am getting express document error:

"Acct group Sold-to party uses ext. no. assignment. Specify an account number"

I have maintained the external number range from 000000... to ZZZZZZ.... and have also maintained account group.

Below are the error details:

"MESSAGE_TYPE_X" " "

"SAPLSZA0" or "LSZA0U47"

"ADDR_SAVE_INTERN"

Source Code Extract

Line

SourceCde

523

call function 'TR_WRITE_LOG'

524

exporting

525

iv_log_type = 'FILE'

526

iv_logname_file = lv_logfile

527

  • IV_LOGNAME_DB =

528

  • iv_logname_memory = lv_protfile

529

iv_append_mode = prot_append_mode

530

iv_condense = ' '

531

tables

532

it_msgs = msg_tab

533

exceptions

534

invalid_input = 1

535

file_access_error = 2

536

db_access_error = 3

537

others = 4

538

.

539

if sy-subrc 0.

540

message id sy-msgid type sy-msgty number sy-msgno

541

with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

542

endif.

543

544

545

message x842 with '&1' raising database_error.

546

547

endif.

548

*----


Ende Fangschaltung

-


549

*xxxi-

550

END-OF-DEFINITION.

551

552

write_to_db adrc .

554

  • WRITE_TO_DB ADRCT . "*912d

555

DELETE adrct FROM TABLE adrct_d. "*912i

556

IF sy-subrc 0. "*912i

557

MESSAGE a840 WITH 'ADRCT' RAISING database_error. "*912i

558

ENDIF. "*912i

559

UPDATE adrct FROM TABLE adrct_u. "*912i

560

IF sy-subrc 0. "*912i

561

MESSAGE a841 WITH 'ADRCT' RAISING database_error. "*912i

562

ENDIF. "*912i

563

MODIFY adrct FROM TABLE adrct_i. "*912i

564

IF sy-subrc 0. "*912i

565

MESSAGE a842 WITH 'ADRCT' RAISING database_error. "*912i

566

ENDIF. "*912i

567

write_to_db adrp .

568

write_to_db adcp .

569

write_to_db adrt .

570

write_to_db adr2 .

571

write_to_db adr3 .

572

write_to_db adr4 .

I will reward all the helpful answers.

Thanks,

Mohit.

5 REPLIES 5
Read only

Former Member
0 Likes
886

Hi,

We have to insert user exit related to number range in the program because of that only it is showing error. Insert user exit to avoid error message.

Regards,

Sreekanth.

Read only

0 Likes
886

Hi,

Can u suggest some user exit related to number range?

I will reward the helpful answer

Thanks,

Mohit.

Read only

0 Likes
886

Hi,

I am also facing similar issue.

Could u pls. tell me in detail what needs to be done in User-exit(Number range) to solve this issue.

Thanks!

-sangar

Read only

0 Likes
886

Hi,

I am also facing similar issue.

Could u pls. tell me in detail what needs to be done in User-exit(Number range) to solve this issue.

Thanks!

-sangar

Read only

ciaran_heffron
Product and Topic Expert
Product and Topic Expert
0 Likes
886

Hello all,

Please review note 445575 on how to adjust the number range, the report from the note can be used to check the BAS number range and then the number range can be adjusted as required in SA01.

Thank you.

Best regards,

Ciarán