2020 Jul 16 10:06 AM
Hello,
I have created an internal table AR and infoset field ARREARS. I am trying to get infoset field ARREARS to report the value in internal table AR field KUNNR. Can anyone please assist? The script I am using is below
DATA: ARS TYPE SORTED TABLE OF BSID WITH NON-UNIQUE KEY KKBER KUNNR.
DATA: AR TYPE BSID.
SELECT * FROM BSID INTO TABLE ARS.
CLEAR ARREARS.
READ TABLE ARS INTO AR WITH KEY KUNNR = '224560'.
ARREARS = AR-KUNNR.
Hello,
I have created an internal table AR and infoset field ARREARS. I am trying to get infoset field ARREARS to report the value in internal table AR field KUNNR. Can anyone please assist? The script I am using is below
DATA: ARS TYPE SORTED TABLE OF BSID WITH NON-UNIQUE KEY KKBER KUNNR.
DATA: AR TYPE BSID.
SELECT * FROM BSID INTO TABLE ARS.
CLEAR ARREARS.
READ TABLE ARS INTO AR WITH KEY KUNNR = '224560'.
ARREARS = AR-KUNNR.
2020 Jul 16 10:24 AM
ARREARS = '224560'
I don't understand the objective of this code
you could replace all this with
SELECT *
into table @data(ars)
from bsis.
read table ars into @data(ar) with kunnr = ...but this code is evil, and should be really optimized
2020 Jul 16 10:26 AM
2020 Jul 16 10:26 AM
Hi,
Please use code button when using code in questions. Also follow coding standards, KUNNR data type mismatch could be reason pass value with preceding zero and try
2020 Jul 16 10:46 AM
As S Abinath said: "Please use code button when using code in questions."
2020 Jul 16 10:48 AM
Your question is completely unclear. Selecting data from the whole table BSID is non-sense -> please ask an "experienced" ABAP developer.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |