Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Loop at

Hi guys,

I have to search partner who have sales contract.

In order to do that i have a Partner number (id) and tables and... ABAP !

With "id" i have to find sales contract. The method is the following one :

in table CRMD_PARTNER, PARTNER_NO = "id".

But many records exist with PARTNER_NO = "id" with an interesting field : guid with is the number of object (sales contract, opportunity, ...).

(for example :

guid g1 ... partner_no "id"

guid g2 ... partner_no "id"

guid g3 ... partner_no "id"

guid g4 ... partner_no "id"

)

So i have to look at CRMD_LINK with GUID_SET = guid if the object is an sales contract.

So my problem is toi use "LOOP AT" in order to verify for each object if one of them is a sales contract.

Points will be assigned...

Best cheers,

Vince.

Tags:
Former Member
Former Member replied

select guid from crmd_partner into table itab where partner_no = 'id'.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question