on 07-04-2012 8:44 AM
Hello Experts,
my problem is - for the purchase order we use not the partners - functions...
so i want to create them - when i start to transfer them to GTS.
here is my condig - doesent work - with the question - can someone sent me an coding which works.
Or wich fields must be filled.
thanks....
DATA: wa_par TYPE LINE OF sllr3_api6800_hdr_par_r3_t.
DATA: lt_par TYPE sllr3_api6800_hdr_par_r3_t.
*PARTNER_FUNCTION
*PARTNER_TYPE ##
*PARTNER_ID ##
*PARTNER_GUID
*COUNTRY
*COUNTRY_ISO
*ADDR_NO ##
*ADDR_MANIPULATED
*VAT_REG_ID
*ADDR_GUID
wa_par-partner_id = '0000014144' . "*= is a partner no. from the gts... doesent work
wa_par-partner_type = 'LF' .
"wa_par-partner_id = is_ekko-lifnr . "*= is a vendor from the erp... doesent work
* addr_no holen
SELECT SINGLE adrnr land1
FROM lfa1
INTO (wa_par-addr_no, wa_par-country)
WHERE lifnr = is_ekko-lifnr .
APPEND wa_par TO lt_par.
cs_hdr_cdoc-par[] = lt_par[] .
Hi Bertram,
You will need code something like this:
wa_par-partner_function = 'LF'.
wa_par-partner_type = '01.' " vendor
wa_par-partner_id = '0000014144'.
(optionally, also fill the Country and Address Number)
APPEND wa_par TO cs_hdr_cdoc-par.
Importantly, you need to map Partner Function 'LF' in the GTS configuration, for your Logical System Group.
I hope it works for you.
Regards,
Dave
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Dave - beautiful.
you have given me the right hint.
here is my coding which works - maybe for other who have same problem -. thanks to sap for the wondeful documentation. - lol...
wa_par-partner_function = 'LF'.
wa_par-partner_type = '01' .
wa_par-partner_id = is_ekko-lifnr .
"addr_no holen
SELECT SINGLE land1
FROM lfa1
INTO wa_par-country
WHERE lifnr = is_ekko-lifnr .
"dont know if country is needed
"wa_par-addr_no = is_ekko-lifnr .
APPEND wa_par TO lt_par.
cs_hdr_cdoc-par[] = lt_par[] .
User | Count |
---|---|
15 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.