Hi!
I need to create a logic in class to check the list pricing
For that I ahve created a method with follwoing parameters
IV_KNUMV Importing Type KNUMV
IV_KPOSN Importing Type KPOSN
RV_IS_LIST Returning Type BOOLEAN
Now for this I need to create a logic for the code based on the
follwoing steps. I havent created a class before , but I tried it
though its giving me errors and hence I am unable to get through.
Could someone please help me out with this .
The steps are as mentioned below. In teh steps there is a ztable
that had to be created which I have done and the fields for the
table are as follows.
table name : ZSD_PRICE_TYPE
MANDT MANDT CLNT 3 0 Client
KAPPL KAPPL CHAR 2 0 Application
KSCHL KSCHA CHAR 4 0 Condition type
KOTABNR KOTABNR NUMC 3 0 Condition table
ZPRICE_TYPE ZPRICE_TYPE NUMC 2 0 Price type flag
the steps are as follows:-
Determine if Condition is Active or Inactive. Only go forward with Active conditions.
For each item, read KONV with the Condition Type, DocCond and Item No.
Determine if condition is Active (KONV-KINAK). If active, get the Access # (KONV-KOLNR). Example: 60.
Read Table T685 with Application = V, Condition Type from KONV (eg. ZPRL)
to get the Access sequence name (T685-KOZGF). This can be the same or different from the condition type.
Then Read Table T682I with Application = V,
Access Sequence = T685_KOZGF and Access # (KONV-KOLNR)
to return the Table # (T682I-KOTABNR). For example, 901.
Read the Z* table with Condition Type from KONV and Table # from
T682I to determine if the table is 1 (List) or 2 (Off List). Set flag accordingly.
Loop through the same logic for all conditions for the same
item to determine the List or Off List setting of each.
At end of loop, if any of the active records = 2 (Off List),
the item is considered Off List. Else List.
Thanks
Aarav