Skip to Content
1
Former Member
Apr 29, 2014 at 12:09 PM

What happens if sort fields are empty in an internal table referring to standard structure like VBAP?

443 Views

While creating sales order the internal table of type VBAP is sorted based on the fields VBELN, UEPOS and POSEX. VBELN is same for all the items, UEPOS is 0 for all items and POSEX is blank for all items. In a case where line items are 10, 20, 30 to 220, then SORT statement did not have any impact on the internal table. If the line item exceeds 220, say a new line item is added as 230, then the items are sorted descending 230, 220 to 10. Can somebody please explain the reason for this behavior?

Regards,

Vignesh M