Application Development and Automation 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: 
Read only

Mach Code

Former Member
0 Likes
1,497

Hi,

Is there any MATCHCODE for the following fields.

1.Document Type (BLART)

2. G/L Account(HKONT)

3.Cost Center(KOSTL)

Pls help me.

Thanks.

7 REPLIES 7
Read only

Former Member
0 Likes
1,037

Dont Duplicate the Threads.

Please check the search helps.

BLART->SHLP_ISCD_BLART

HKONT->FKK_HKONT

KOSTL->TRAC_KOSTL

Read only

0 Likes
1,037

also you can make your own matchcode....check this.

AT SELECTION-SCREEN.

  IF p_kostlv IS INITIAL AND
     p_kostl IS INITIAL AND
     p_plans IS INITIAL.

    MESSAGE e001(00) WITH 'Debe ingresar al menos un valor'.
  ENDIF.

AT SELECTION-SCREEN ON value-request for p_plans-low.

  SELECT *
  INTO CORRESPONDING FIELDS OF TABLE t_match
  FROM pa0001
  where plans between '50000000' and '59999999'.

  LOOP AT t_match.

    SELECT SINGLE plstx
      INTO t_match-plstx
      FROM t528t
      WHERE plans EQ t_match-plans
          AND sprsl EQ 'S'.
    MODIFY t_match.

  ENDLOOP.


  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield    = 'pernr'
      dynprofield = 'p_pernr'
      dynpprog    = sy-repid
      dynpnr      = sy-dynnr
      value_org   = 'S'
    TABLES
      value_tab   = t_match.

Read only

Former Member
0 Likes
1,037

Hi,

What's wrong with the answer you've already been given?

Regards,

Nick

Read only

0 Likes
1,037

That anwer was wrong.

These match codes does not exists

Read only

0 Likes
1,037

Hi,

Then reply to the original thread, don't just post a new one.

Just out of curiosity, why are you wanting to use a matchcode rather than a search help?

Regards,

Nick

Read only

Former Member
0 Likes
1,037

Hi,

When I am giving these match code. My screen lay out is not taking these values.

Read only

0 Likes
1,037

show how are you doing the coding if possible.