Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

Getting Sales Conditions using ABAP

$
0
0

This is my first document on SAP SCN, so I decided to post an ABAP solution that I created some time ago to get Sales Conditions, using a key combination almost like we found running VK13 transaction (condition type, material, condition number or customer):

 

VK13.png

 

This solution uses 3 methods from a “Z” Class, which can be used separated or combined, as necessary!

 

To see all source codes, check the files attached!

 

 

Method READ_CONDITION_TABLES (Static Method – Public)

 

This method is used to read all Sales Condition tables, defined into Customizing Access Sequences.

 

Parameters:

READ_CONDITION_TABLES_Param.png

 

Method GET_CONDITION_VALUES (Static Method – Public)

 

This method is used to select dynamically all entries from Sales Condition tables read by method READ_CONDITION_TABLES.

 

Parameters:

GET_CONDITION_VALUES_Param.png

 

Method GET_SALES_CONDITIONS (Static Method – Public)

 

This method was created to return all entries from Sales Condition tables enabled, using methods READ_CONDITION_TABLES & GET_CONDITION_VALUES.

 

Parameters:

GET_SALES_CONDITIONS_Param.png

 

I hope this document be helpful for someone!

 

Best regards,

Alexandre B. Dambrowski


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>