Application Development 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: 

fplt-fksaf biling plan text field name?

Former Member
0 Kudos

Hi Experts

I have billing plan document status FPLT-FKSAF .

I want text description of the status fksaf

I need table field name of this

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use the function module "DOMAIN_VALUE_GET".

data : lv_text type val_text.
      
CALL FUNCTION 'DOMAIN_VALUE_GET'
  EXPORTING
    i_domname        = 'STATV'
    i_domvalue       = <fplt-fksaf>   "Pass the value of FKASF"
 IMPORTING
   E_DDTEXT         = val_text
 EXCEPTIONS
   NOT_EXIST        = 1
   OTHERS           = 2.

Variable VAL_TEXT will hold the description.

Regards

Vinod

2 REPLIES 2

Former Member
0 Kudos

Hi,

Use the function module "DOMAIN_VALUE_GET".

data : lv_text type val_text.
      
CALL FUNCTION 'DOMAIN_VALUE_GET'
  EXPORTING
    i_domname        = 'STATV'
    i_domvalue       = <fplt-fksaf>   "Pass the value of FKASF"
 IMPORTING
   E_DDTEXT         = val_text
 EXCEPTIONS
   NOT_EXIST        = 1
   OTHERS           = 2.

Variable VAL_TEXT will hold the description.

Regards

Vinod

Former Member
0 Kudos

Using the following FM u got full details from table FPLT

DATA e_fpla LIKE fpla .

DATA e_fplt LIKE fpltvb OCCURS 0 .

CALL FUNCTION 'SD_SALES_DOCUMENT_READ'

EXPORTING

document_number = doc.

CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'

EXPORTING

i_vbeln = doc

i_posnr = pos

IMPORTING

e_fpla = e_fpla

TABLES

e_fplt = e_fplt

EXCEPTIONS

no_billingplan_allowed = 1

no_billingplan_found = 2

OTHERS = 3.