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

check document type

Former Member
0 Likes
765

Hello All,

I have my own 'Z' condtion type.

I have to execute this condition type only when the sales order docuement type equalls to 'ZSO'.

where can i do this.

Thanks in advance.

Best Regards,

Amarender Reddy B

8 REPLIES 8
Read only

Former Member
0 Likes
747

do it in VOFM.....

Read only

0 Likes
747

Hello Kumaresh,

Thanks for your fast reply, can you please give little details, how to do it in vofm.

your help will be definetely appreciated.

Thank you.

Best Regards,

Amarender Reddy B

Read only

0 Likes
747

hi..

check out this pdf.

http://saptechsolutions.com/pdf/InsideVOFM.pdf

regards,

padma

Read only

0 Likes
747

Hello Padma,

Thanks for the document.

I cant access the sales order header information, inside this routines, If i write a routine a function module to get the sales order header and item informaiton,

in function group i should put the function module.....

please let em know....i am new to SD

Best Regards,

Amarender Reddy B

Read only

0 Likes
747

actually what problem u r facing in VOFM?

i cant understand ur prev query.!

Read only

0 Likes
747

in the routine that i have written in VOFM, i cant access the sales order header information, and item information.

i need sales order information, so if i write a 'Z' function module, which give sales order information (i.e. VBAK and VBAP) in which function group i should write it.

can i call this function module in side the VOFM routine.

Thanks a lot.

Read only

0 Likes
747

wht routine u r applying?

check this pdf.:

http://saptechsolutions.com/pdf/VOFMDataTransferRoutines.pdf

check for the 3. Orders in page 4.

and choose the appropriate routine for ur requirement. double click the routine number, it will ask for a ACCESS key, u have to provide them (u can ask BASIS / ur Lead for procedures) and u can write the code.

It will be an include program basicallly, and this include wil be called in the main standard program according to ur routine. Inside the include, we hav a subroutine, there we will write the codings.

In addition, check this thread:

Hope this solves ur problem.

regards,

Padma.

Read only

Former Member
0 Likes
747

hi...

Go to VK11..

Logistics u2192 Sales and Distribution u2192 Master Data u2192 Conditions u2192 Select Using Condition Type u2192 VK11 - Create

choose the first option "sales docu. type"

give the docu. type and maintain the key combination

pricing will automatically flow in the sales order.