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: 

Need to know how komp-evrwr will be as 'X' in the below code(Include LV61A004).

former_member705696
Participant
0 Kudos
2,743

  Guys,

  In debug mode I see komp-evrwr field is coming as SPACE and thats why one of the custom condition type is not coming while I am trying to create billing from a delivery document no. Can anybody help me to know - how komp-evrwr will be as 'X'?

Include          LV61A004

* Determine costs according to item category configuration (TVAP)
form kobed_004.
  sy-subrc = 4.
  if komp-kposn ne 0.
    check: t001-bukrs = t001k-bukrs.
    check: komp-werks ne space.
    check: komp-evrwr = 'X'.
    check: komp-fareg na '45'.
  endif.
  sy-subrc = 0.
endform.
* Prestep
form kobev_004.
  sy-subrc = 0.
endform.

Regards,

Shyamal.

3 REPLIES 3

0 Kudos
1,479

Hi Shyamal,

I think this should be taken care by respective functional consultant. Some field should be checked while creating custom condition type.

ABAP work is not needed here.

Regards,

Siddhesh Satghare.

Rachid
Newcomer
0 Kudos
1,384

Even if you set up   the cost determination in the item categories and copy control , the komp-evrwr  remains empty

waza7658
Participant
0 Kudos
394

SAP Note 352441