Urgent help on IC Webclient/Marketing/Partner Determination
Hello guys,
I am doing this implementation on IC Web. We have a problem that needs to be addressed real quick.
All the main business partners here are the Sold-To's and then I have Ship-to's, Bill-To's and a set of Contacts attached to it. We do have an Employee responsible too that would be determined from the Territory Management (Its not set up yet!!!)
I create a transaction type "IC Outbound Sales" and assign an access sequence 0001 to the Sold-To and 0005 to all the other's except for the Employee from Territory. When this transaction type is attached to the communication medium and the campaign released, should the related BP's to the Sold-To also appear in the call list?
I think they should appear, but its not giving us the result. Even the target group is not coming out with the desired contacts.
Regards
Jack
Hi Krish,
Maintain the following parameter in your user profile.
Paramater id : CRM_ICWC_TEST with value '0xx3456789'.
Now you can able to see name of view as tooltip in
your IC web client screen.
Hope this will help you.
Regards,
SS
Similar Messages
-
Partner determination for marketing
hi friends,
I have done all the settings for partner determination for marketing planner.But still getting error as Define partner determination procedure during creation of MP.Which is standard partner function to be used.....Did i miss something.?????
Please suggest for both my quries?
Thanks in advance
ajayHi Ajay,
You should not use the partner determination of activities for marketing.
You use the following partner determination procedures.
MACT0001
MFND0001
You can copy any of the above procedure and create your own partner determination procedure.
Hope it solves your problem.
Reward points if it helps.
Rgds,
Madhu -
Urgent help in coding of creating New Business partner?
Hi Friends,
I need urgent help on this.Please give me the solution.
This is the coding which i written for creating new BP.
FUNCTION ZCTS_NEW_CONTACT.
""Local interface:
*" IMPORTING
*" VALUE(BUSINESSPARTNER) LIKE BAPIBUS1006_HEAD-BPARTNER
*" VALUE(CNEWINFO) TYPE ZCTS_CONTACTS
*" VALUE(CDATA) LIKE BAPIBUS1006_CENTRAL STRUCTURE
*" BAPIBUS1006_CENTRAL
*" VALUE(BUSPART1) LIKE BAPIBUS1006_RELHEAD-BUSINESSPARTNER1
*" VALUE(BUSPART2) LIKE BAPIBUS1006_RELHEAD-BUSINESSPARTNER2
*" VALUE(RELCAT) LIKE BAPIBUS1006_RELHEAD-RELATIONSHIPCATEGORY
*" EXPORTING
*" VALUE(MESG) TYPE CHAR100
DATA: lt_return like bapiret2 occurs 0 with Header line.
DATA: CTPERS LIKE BAPIBUS1006_CENTRAL_PERSON OCCURS 0 WITH HEADER LINE.
DATA : PARTN_GRP TYPE BAPIBUS1006_HEAD-PARTN_GRP.
DATA : PARTN_CAT TYPE BAPIBUS1006_HEAD-PARTN_CAT.
DATA: BEGIN OF ADADD.
INCLUDE STRUCTURE BAPIBUS1006_ADDRESS.
DATA: END OF ADADD.
DATA: BEGIN OF ADTEL OCCURS 0.
INCLUDE STRUCTURE BAPIADTEL.
DATA: END OF ADTEL.
DATA: BEGIN OF ADSMP OCCURS 0.
INCLUDE STRUCTURE BAPIADSMTP.
DATA: END OF ADSMP.
CTPERS-FIRSTNAME = CNEWINFO-FNAME.
CTPERS-LASTNAME = CNEWINFO-LNAME.
PARTN_CAT = 1.
PARTN_GRP = 002.
ADADD-CITY = CNEWINFO-CITY .
telephone info **
ADTEL-TELEPHONE = CNEWINFO-PHONE.
ADTEL-CONSNUMBER = '001'.
APPEND ADTEL.
ADTEL-TELEPHONE = CNEWINFO-MOBILE.
ADTEL-CONSNUMBER = '002'.
APPEND ADTEL.
email information **
ADSMP-E_MAIL = CNEWINFO-EMAIL .
APPEND ADSMP.
CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'
EXPORTING
PARTNERCATEGORY = PARTN_CAT
CENTRALDATA = CDATA
PARTNERGROUP = PARTN_GRP
CENTRALDATAPERSON = CTPERS
ADDRESSDATA = ADADD
IMPORTING
BUSINESSPARTNER = BUsinessPartner
TABLES
TELEFONDATA = ADTEL
E_MAILDATA = ADSMP
RETURN = lt_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
*PARTN_CAT = 1.
*PARTN_GRP = 002.
*ADADD-CITY = CNEWINFO-CITY .
telephone info **
ADTEL-TELEPHONE = CNEWINFO-PHONE.
ADTEL-CONSNUMBER = '001'.
APPEND ADTEL.
ADTEL-TELEPHONE = CNEWINFO-MOBILE.
ADTEL-CONSNUMBER = '002'.
APPEND ADTEL.
email information **
ADSMP-E_MAIL = CNEWINFO-EMAIL .
APPEND ADSMP.
CALL FUNCTION 'BAPI_BUPR_PFCT_CREATEFROMDATA'
EXPORTING
BUSINESSPARTNER1 = BUSPART1
BUSINESSPARTNER2 = BUSPART2
RELATIONSHIPCATEGORY = RELCAT
TABLES
RETURN = lt_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
LOOP AT lt_return WHERE TYPE = 'E'.
MESG = ' NOT CREATED NEW CONTACT'(020).
EXIT.
ENDLOOP.
ENDFUNCTION.
Early reply is highly appriciable.
Regards,
BONAHi,
Thanks for early reply.
When i tested created new BP.
Wheni check wether it is created or not its not created.
What is the problem.is there modifications i have to do int he coding.
Thanks,
BONA. -
Need tech help on partner determination.
Hi Guys,
As per the specific business scenario,we have defined one partner determination procedure but we do have two business process in which partner are getting determined from sold to party but other country we determine from ship to party.
Note -We are using only one document type OR do we have any tech suggestions like via user exit can we manage if yes How????Hi,
Plz can you make it elaborate
as per your thread i understood,You defined one partenr Procedure ,which you already maintained in OR. -
Simple doubt in partner determination procedure
Hi gurus,
I have a problem with a partner determination procedure. I need that a marketing campaing has a partner determination procedure in which Responsible Person will be mandatory with two assignments.
In my partner determination procedure I select 2 as minumun value but the marketing campaing allows only one Responsible Person assigment.
It's possible to make a partner function mandatory with a minimun number of partners?
Thanks in advance.
Javier Merinohi guys
i have a query regarding access sequence in partner determination in SAP CRM.problem is that when i am trying to create a partner determination procedure using access sequence
Business Partner Relationship->Activity Partner->User
having three partner functions :
Sales Prospect
Contact Person
Person Responsible
there is deadloack arising in contact person and person responsible i.e. partner function is not being determined using the above access sequence
i have maintained same relationship categories.please tell me whether deadlock is a problem or not because my main concern is when i am trying to run Lead using above mentioned partner determination procedure i am not able to run the LEAD.for instance ideally what should be happening is :
there are three blank boxes
one of contact person ,another of person responsible and finally of sales prospect.now since i have defined the BP relationship,so using above determination procedure what shoulod be happening is that if
m writing any BP no. in sales prospect then conatct person should be dispalyed automatically because of the relationship i have maintained in BP.
but its not happening ,i have to fill each entriers manually
please guide me to some solution
hoping of an immediate help to a silly problem which i guess m able to define appropriately
thanks & regards
ashish -
Assign partner determination procedure for campaign automation
Dear all,
could anyone help me how to set up Partner determination in CRM? I try to create campaign automation and when I want to release it I get this error message:
Diagnosis
Campaign 1: Parties involved have been assigned to this marketing project. However, there is no partner determination procedure assigned to type "Product Promotion" (Z002).
System Response
The partner determination procedure is determined from the type. If you select a type that does not have a partner determination procedure assigned to it in Customizing although parties involved are assigned to the marketing project, the assigned parties involved cannot be validated. You therefore need to choose a type with a partner determination procedure assigned if parties involved are assigned to the marketing project.
Afterwards I§m not allowed to save the campaign changes and to release the campaign.
Please, how can I assign the Partner determination procedure?
Thank you very much
MichalHi,
For setting up partner determination procedure for Campaign, goto transaction spro.
Choose CRM->Marketing ->Marketing Planning and Campaign Management
In here, please expand the node 'Partner Processing'. There is IMG documentation help available on how to set up PDP.
Hope this helps.
Thanks and Regards,
Nisha -
hi,
sap gurus,
how to set partner determination procedure for customer
hierarhies.........
regards,
balaji.t
09990019711.Hello Rajesh,
The PDP is set up in customizing.You must create a regular partner determination procedure.In the IMG choose
CRM>Basic Functions>Partner Processing-->Define Partner Determination Procedure
You can define a partner determination procedure for each object type.
PDP assigned to the object type Campaign can also be campaign-type-dependent.
IMG:CRM>Marketing>Marketing Planning and Campaign Management>Partner Processing>
Assign Partner Determination Procedure
Hope this helps!
Best Regards,
Shanthala Kudva. -
Partner Determination Not Working in Opportunity
Hi,
We are using Z-partner Functions Which are Determined using Partner Determination Procedure in Lead but it is not Copied to opprtunity.
we used Different partner procedure for opportunity but is not coping from Lead. We tried to Modify the partner Procedure used for Lead and use it for Opportunity but it is not working.
can any one suggest were we might be going wrong.
With regards,
Selvam tHello Selvam,
there is no copy procedure during partner determination. If you create a followup doc or copy an existing document - the partner det. runs again. According to your settings in the PDP the partner are determined by access sequence and source. That means if you want partners which should be copied from predecessor then you should use the source COM_PARTNER_A like i.e. access sequence 0001 in standard.
I hope this help,
Regards
Rene -
Urgent help needed for XML Tags using XMLForest()
Folks
I need some urgent help regarding getting use defined tag in your
XML output.
For this I am using XMLElement and XMLForest which seems to work fine
when used at the SQL prompt but when used in a procedure throws and error
SQL> Select SYS_XMLAGG(XMLElement("SDI",
XMLForest(sdi_num)))
From sdi
where sdi_num = 22261;- WORKS FINE
But when used in a procedure,doesnt seem to work
Declare
queryCtx DBMS_XMLQuery.ctxType;
v_xml VARCHAR2(32767);
v_xmlClob CLOB;
BEGIN
v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
XMLFOREST(sdi_num)))
From sdi
where sdi_num = 22261';
queryCtx :=DBMS_XMLQuery.newContext(v_xml);
v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
display_xml(v_xmlClob);
End;
CREATE OR REPLACE PROCEDURE display_xml(result IN OUT NOCOPY CLOB)
AS
xmlstr varchar2(32767);
line varchar2(2000);
BEGIN
xmlstr:=dbms_lob.SUBSTR(result,32767);
LOOP
EXIT WHEN xmlstr is null;
line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
dbms_output.put_line('.'||line);
xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
END LOOP;
end;
SQL> /
.<?xml version = '1.0'?>
.<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
XML tag name.</ERROR>
PL/SQL procedure successfully completed.
SQL>HELP is appreciated as to where I am going wrong?Hi,
if you want to transform something to something else, you should declare, what is your source.
I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
Kind regards,
Hendrik -
hi friends,
Help me how to do this
REPORT ZINTERFACE_SAMPLE.
type-pools:SLIS.
TABLES:knb1, "Customer Master (Company Code)
kna1,
knvp. "Customer Master Partner Functions
TYPES:BEGIN OF T_knb1,
kunnr like knb1-kunnr,
bukrs like knb1-bukrs,
akont like knb1-akont,
END OF T_knb1.
TYPES:BEGIN OF T_kna1,
kunnr like kna1-kunnr, "customer number
NAME1 like KNA1-NAME1, "customer name
stras like KNA1-STRAS, "Customer address
ort01 like KNA1-ORT01, "Customer city
stcd1 like KNA1-STCD1, "Tax id
pstlz like KNA1-PSTLZ, "Postal code
END OF T_kna1.
TYPES:BEGIN OF T_knvp,
kunnr like knvp-kunnr, "customer number
parvw like knvp-parvw,
kunn2 like knvp-kunn2, "Customer number of business partner
END OF T_KNVP.
TYPES:BEGIN OF T_final,
Record_type TYPE c,
Sold_to_cust(10) TYPE c,
Payer(10) TYPE c,
Sequence(5) TYPE n,
Cust_name(35) TYPE c,
Cust_adreess(35) TYPE c,
Cust_city(35) TYPE c,
Tax_id(16) TYPE c,
Postal_code(5) TYPE c,
Branch TYPE c,
Delivery(3) TYPE c,
END OF T_final.
*Internal table declaration
DATA:I_knb1 TYPE STANDARD TABLE OF t_knb1 initial size 0,
i_kna1 TYPE STANDARD TABLE OF t_kna1 initial size 0,
i_knvp TYPE STANDARD TABLE OF t_knvp initial size 0,
i_final TYPE STANDARD TABLE OF t_final initial size 0.
DATA: t_fieldcat_tab TYPE slis_t_fieldcat_alv WITH HEADER LINE.
*Work area declaration
DATA:wa_knb1 TYPE t_knb1,
wa_kna1 TYPE t_kna1,
wa_knvp TYPE t_knvp,
wa_final TYPE t_final.
*variable declaration
data:sequence TYPe n,
g_line TYPE i.
selection screen *
SELECTION-screen begin of block b1 with frame title text-001.
parameters:p_bukrs like knb1-bukrs, "Company code
p_akont like knb1-akont .
selection-screen end of block b1.
SELECTION-screen begin of block b2 with frame title text-002.
PARAMETERS:R1 RADIOBUTTON GROUP G1,
R2 RADIOBUTTON GROUP G1.
Parameters:p_file like rlgrap-filename.
"Recon Account in General Ledger
selection-screen end of block b2.
*AT selection-screen ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
FILE_NAME = P_FILE.
START-OF-selection.
PERFORM f_fetchdata.
PERFORM f_prepare_fieldcat.
PERFORM f_display_report.
*END-OF-SELECTION.
*IF R1 EQ 'X'.
*perform F_DOWNLOAD.
*ENDIF.
*IF R2 EQ 'X'.
*OPEN DATASET P_FILE FOR OUTPUT IN text mode ENCODING DEFAULT.
*LOOP AT i_final INTO WA_final.
*TRANSFER WA_final TO P_FILE.
*ENDLOOP.
*CLOSE DATASET P_FILE.
*ENDIF.
*& Form f_fetchdata
FORM f_fetchdata .
select kunnr
bukrs
akont
from knb1
into table i_knb1
where bukrs = p_bukrs
AND akont = p_akont.
DESCRIBE TABLE i_knb1 LINES g_line.
LOOP AT i_knb1 INTO wa_knb1.
SELECT single KUNNR
NAME1
STRAS
ORT01
STCD1
PSTLZ
FROM kna1
INTO wa_kna1
where kunnr = wa_knb1-kunnr.
if sy-subrc <> 0.
*Error KNA1 record not found.
endif.
SELECT single kunnr
parvw
kunn2
FROM KNVP
INTO wa_knvp
where kunnr = wa_knb1-kunnr
AND parvw = 'RG'.
if sy-subrc <> 0.
*Error KNA1 record not found.
endif.
sequence = sequence + 1.
MOVE: 'c' TO wa_final-Record_type,
wa_knvp-kunnr TO wa_final-Sold_to_cust,
sequence TO wa_final-Sequence,
wa_KNA1-NAME1 TO wa_final-Cust_name,
wa_kna1-STRAS TO wa_final-Cust_adreess ,
wa_kna1-ort01 TO wa_final-Cust_city,
wa_kna1-STCD1 TO wa_final-Tax_id,
wa_kna1-PSTLZ TO wa_final-Postal_code,
'1' TO wa_final-branch,
'abc' TO wa_final-Delivery.
INSERT wa_final INTO TABLE i_final.
endloop.
ENDFORM. " f_fetchdata
FORM f_prepare_fieldcat.
t_fieldcat_tab-col_pos = 1.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Record_type'.
t_fieldcat_tab-seltext_l = 'Record type'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 2.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Sold_to_cust'.
t_fieldcat_tab-seltext_l = 'Sold to cust'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 3.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'payer'.
t_fieldcat_tab-seltext_l = 'Payer'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 4.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Sequence'.
t_fieldcat_tab-seltext_l = 'sequence'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 5.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Cust_name'.
t_fieldcat_tab-seltext_l = 'Cust name'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 6.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Cust_adreess'.
t_fieldcat_tab-seltext_l = 'Cust adreess'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 7.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Cust_city'.
t_fieldcat_tab-seltext_l = 'Cust city'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 8.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Tax_id'.
t_fieldcat_tab-seltext_l = 'Tax id'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 9.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Postal_code'.
t_fieldcat_tab-seltext_l = 'Postal code'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 10.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Branch'.
t_fieldcat_tab-seltext_l = 'Branch'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 11.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'KWMENG'.
t_fieldcat_tab-seltext_l = 'Order Qty'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 12.
t_fieldcat_tab-tabname = 'i_final'.
t_fieldcat_tab-fieldname = 'Delivery'.
t_fieldcat_tab-seltext_l = 'Delivery'.
APPEND t_fieldcat_tab.
ENDFORM. " f_prepare_fieldcat
*& Form f_display_report
*To display the ALV Report
FORM f_display_report.
DATA: l_repid LIKE sy-repid.
l_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = l_repid
i_buffer_active = 'X'
IT_FIELDCAT = t_fieldcat_tab[]
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = i_final[].
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM." f_display_report
*& Form F_DOWNLOAD
text
--> p1 text
<-- p2 text
FORM F_DOWNLOAD .
*CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = p_file
FILETYPE = 'ASC'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = i_final
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
*IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
ENDFORM. " F_DOWNLOAD
for this one when i given the proper input
it showing the Runtime error.
Could u please tell me what mistake i have done
Urgent help
Regards
harshavi N.HI,
Run this program..
REPORT ZINTERFACE_SAMPLE.
type-pools:SLIS.
TABLES:knb1, "Customer Master (Company Code)
kna1,
knvp. "Customer Master Partner Functions
TYPES:BEGIN OF T_knb1,
kunnr like knb1-kunnr,
bukrs like knb1-bukrs,
akont like knb1-akont,
END OF T_knb1.
TYPES:BEGIN OF T_kna1,
kunnr like kna1-kunnr, "customer number
NAME1 like KNA1-NAME1, "customer name
stras like KNA1-STRAS, "Customer address
ort01 like KNA1-ORT01, "Customer city
stcd1 like KNA1-STCD1, "Tax id
pstlz like KNA1-PSTLZ, "Postal code
END OF T_kna1.
TYPES:BEGIN OF T_knvp,
kunnr like knvp-kunnr, "customer number
parvw like knvp-parvw,
kunn2 like knvp-kunn2, "Customer number of business partner
END OF T_KNVP.
TYPES:BEGIN OF T_final,
Record_type TYPE c,
Sold_to_cust(10) TYPE c,
Payer(10) TYPE c,
Sequence(5) TYPE n,
Cust_name(35) TYPE c,
Cust_adreess(35) TYPE c,
Cust_city(35) TYPE c,
Tax_id(16) TYPE c,
Postal_code(5) TYPE c,
Branch TYPE c,
Delivery(3) TYPE c,
END OF T_final.
*Internal table declaration
DATA:I_knb1 TYPE STANDARD TABLE OF t_knb1 initial size 0,
i_kna1 TYPE STANDARD TABLE OF t_kna1 initial size 0,
i_knvp TYPE STANDARD TABLE OF t_knvp initial size 0,
i_final TYPE STANDARD TABLE OF t_final initial size 0.
DATA: t_fieldcat_tab TYPE slis_t_fieldcat_alv WITH HEADER LINE.
*Work area declaration
DATA:wa_knb1 TYPE t_knb1,
wa_kna1 TYPE t_kna1,
wa_knvp TYPE t_knvp,
wa_final TYPE t_final.
*variable declaration
data:sequence TYPe n,
g_line TYPE i.
selection screen *
SELECTION-screen begin of block b1 with frame title text-001.
parameters:p_bukrs like knb1-bukrs, "Company code
p_akont like knb1-akont .
selection-screen end of block b1.
SELECTION-screen begin of block b2 with frame title text-002.
PARAMETERS:R1 RADIOBUTTON GROUP G1,
R2 RADIOBUTTON GROUP G1.
Parameters:p_file like rlgrap-filename.
"Recon Account in General Ledger
selection-screen end of block b2.
*AT selection-screen ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
FILE_NAME = P_FILE.
START-OF-selection.
PERFORM f_fetchdata.
PERFORM f_prepare_fieldcat.
PERFORM f_display_report.
*END-OF-SELECTION.
*IF R1 EQ 'X'.
*perform F_DOWNLOAD.
*ENDIF.
*IF R2 EQ 'X'.
*OPEN DATASET P_FILE FOR OUTPUT IN text mode ENCODING DEFAULT.
*LOOP AT i_final INTO WA_final.
*TRANSFER WA_final TO P_FILE.
*ENDLOOP.
*CLOSE DATASET P_FILE.
*ENDIF.
*& Form f_fetchdata
FORM f_fetchdata .
select kunnr
bukrs
akont
from knb1
into table i_knb1
where bukrs = p_bukrs
AND akont = p_akont.
DESCRIBE TABLE i_knb1 LINES g_line.
LOOP AT i_knb1 INTO wa_knb1.
SELECT single KUNNR
NAME1
STRAS
ORT01
STCD1
PSTLZ
FROM kna1
INTO wa_kna1
where kunnr = wa_knb1-kunnr.
if sy-subrc <> 0.
*Error KNA1 record not found.
endif.
SELECT single kunnr
parvw
kunn2
FROM KNVP
INTO wa_knvp
where kunnr = wa_knb1-kunnr
AND parvw = 'RG'.
if sy-subrc <> 0.
*Error KNA1 record not found.
endif.
sequence = sequence + 1.
MOVE: 'c' TO wa_final-Record_type,
wa_knvp-kunnr TO wa_final-Sold_to_cust,
sequence TO wa_final-Sequence,
wa_KNA1-NAME1 TO wa_final-Cust_name,
wa_kna1-STRAS TO wa_final-Cust_adreess ,
wa_kna1-ort01 TO wa_final-Cust_city,
wa_kna1-STCD1 TO wa_final-Tax_id,
wa_kna1-PSTLZ TO wa_final-Postal_code,
'1' TO wa_final-branch,
'abc' TO wa_final-Delivery.
INSERT wa_final INTO TABLE i_final.
endloop.
ENDFORM. " f_fetchdata
FORM f_prepare_fieldcat.
t_fieldcat_tab-col_pos = 1.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'RECORD_TYPE'.
t_fieldcat_tab-seltext_l = 'Record type'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 2.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'SOLD_TO_CUST'.
t_fieldcat_tab-seltext_l = 'Sold to cust'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 3.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'PAYER'.
t_fieldcat_tab-seltext_l = 'Payer'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 4.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'SEQUENCE'.
t_fieldcat_tab-seltext_l = 'sequence'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 5.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'CUST_NAME'.
t_fieldcat_tab-seltext_l = 'Cust name'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 6.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'CUST_ADREESS'.
t_fieldcat_tab-seltext_l = 'Cust adreess'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 7.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'CUST_CITY'.
t_fieldcat_tab-seltext_l = 'Cust city'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 8.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'TAX_ID'.
t_fieldcat_tab-seltext_l = 'Tax id'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 9.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'POSTAL_CODE'.
t_fieldcat_tab-seltext_l = 'Postal code'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 10.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'BRANCH'.
t_fieldcat_tab-seltext_l = 'Branch'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 11.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'KWMENG'.
t_fieldcat_tab-seltext_l = 'Order Qty'.
APPEND t_fieldcat_tab.
t_fieldcat_tab-col_pos = 12.
t_fieldcat_tab-tabname = 'I_FINAL'.
t_fieldcat_tab-fieldname = 'DELIVERY'.
t_fieldcat_tab-seltext_l = 'Delivery'.
APPEND t_fieldcat_tab.
ENDFORM. " f_prepare_fieldcat
*& Form f_display_report
*To display the ALV Report
FORM f_display_report.
DATA: l_repid LIKE sy-repid.
l_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = l_repid
IT_FIELDCAT = t_fieldcat_tab[]
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = I_FINAL[].
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM." f_display_report
*& Form F_DOWNLOAD
text
--> p1 text
<-- p2 text
FORM F_DOWNLOAD .
*CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = p_file
FILETYPE = 'ASC'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = i_final
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
*IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
ENDFORM. " F_DOWNLOAD
It is perfectly working for me..
I made the field name and table name as CAPs in the field catalog internal table.
I removed the buffer paramter in the ALV FM.
Thanks,
Naren -
Territory and partner determination procedure for employee responsible
Hi CRM team,
I have a little issue for you I'll be very thankfull if someone could help me.
There is the organisation of the territory management in the company I'm working for:
-Country
-Region
-sector
*each sector have a determination rule based on 1 condition "1 field from the BP Header (customer)"
*each sector have a position assigned to it. (Organisational model PPOMA_CRM) And there is 1 or 2 employee affected to each position..
*When creating an activity,*
*First thing I enter the Account (customer: activity partner)*
*I would like the system to determine the employee affected to the sector of the BP as the employee responsible.*
Any Idea?
For the moment, I'm searching in the partner determination procedure. But the standard access sequence Business Partner Relationships: Activity Partner -> User dont work.
There is some sitting from my IMG:
The partner fonction Employee Responsible is with
*fonction category: employee
*usage: CRM
*Relationship category: Is the employee responsible for
Partner determination procedure:
In the acces sequence, I put a dialogue seq 15 :
Business partner from territory
And in the detail on source, I put:
Fonct. categ. : Employee
Usage: CRM
It dosn't work...
I don't know if I'm am searching in the right place.
Could you help me with a solution to have the needed system behavior????
Thanks a lot for your time and your help.
Best regards,
Ahmed.Hi Ahmed,
After created determination rules for territories have executed the report CRM_TERRMAN_PROC_REL for initial option?
Once territories and determination rules are created, you need to run the above report in Background(schedule a batch job) which will establish relationships between the territories and corresponding attributes. You need to run this report every time there is a change in determination rule of create/change territories.
This should resolve your problem
Regards,
Priyanka -
Partner determination at shipment stage level
Dear All,
We would like to have multiple partner functions determined for a shipment stage within the shipment. Stages are maintained for the shipment route. But we dont want to maintain the service agent at stage level inside the route in IMG. This only determines one partner at stage level. We need multiple partners. Which exit can help here? I dont think normal partner determination exit can be used here like EXIT_SAPLV09A_004 as it is not called in shipment. Please suggest.
Best Regards
DineshHi,
I am sure whether it will helpful to you or not
Kindly check the menu path SPRO --> Sales & Distribution ---> Basic Functions --> Partner Determination -- > Set up Partner Determination -- >Set Up Partner Determination for Shipment
Regards,
Prasanna -
During Notification Creation I get the error --Partner Function is Not Allowed in Partner Determination Profile Q2
As I enter Purchase Document Number in the transaction QM01 and press Enter. I get the above error and donot go further.
Can anyone help me here.Hello Prashant,
You are missing some configuration for the partner function;
Go- to
SPRO>IMG>QM>Quality Notifications>Notification Creation>Partners>Define partner Determination Procedure>
Again Select "Define Partner Determination Procedure".
Select Quality management> Change Partner
Now Select Q2.
Compare settings with Partner Determination Procedure on any other client. Also check Partner functions on the same screen.
Amol. -
Plant as a Vendor in Partner Determination
Hi
In the Partner tabs, I need to determine the Plant as a vendor.
Do I need to create a relationship of the Plant with BP. If yes, what should be the relationship category? I am using "has undefined relationship".
To determine the Plant in Partners tab as one of the Partner, In access sequence, I have used the source as "Business Partner relationships" with the details on the source as Partner function - Sold to party.
In the partner determination procedure, I have assigned this Access seq, with function as Vendor.
While executing the transaction, I am not getting the Vendor determined automatically.
Any inputs would be helpful.
thanks
YashYash,
In order to determine the plant as the vendor you need the following elements established:
1. Plants setup as business partners in CRM
2. Plant relationship to business partners in CRM. You will need to create a new relationship category in order to set this part up. Use transaction BUBA to setup the new category. The role of the corresponding partner should be "vendor". Now assign the plants to your business partner using the new relationship category.
3. Configure your partner determination procedure to pickup the vendor from the relationship category you defined before.
I have done something similar with a completely "custom" partner function so, this should probably work for something more standard like a vendor.
Good luck,
Stephen -
Partner determination rules in sales documents
Good afternoon Experts
I'm trying to determine responsible agents in a quotation document by using a rule with responsibilities
( in the access sequence of the responsible agent partner function).
Could someone please confirm how the rule container gets filled?
If the rule is based on a post code my understanding is that the post code of the sold
to party is passed to the rule container and the responsible agent gets
determined. Passing the post code to the rule container should be in this case hardcoded.
What happens though if I need to determine the responsible agent based on another
piece of information like "sales order type", "client tax classification" .
- How does the system know how to fill the rule container?
- Do I need to create a new organizational attribute ?
On Sap help I've found :
"If you use rule resolution using responsibilities, you do not have to assign
attributes in the organizational model, other than the attributes distribution
channel and division; these are necessary for showing the sales area."
Where does the sales area come in for partner determination when using rules with responsabilities ? Is there a mechanism like sold to party/document -> sales area -> organisational attribute => attribute passed to rule container?
Any input would be appreciated.
Best regards
Razvan ZaineaHi Razvan,
you can use rules in your partner determination access sequence. Most attributes are filled in document processing for the rule container.
You mentioned postal code. This is filled from the main partner of the document. The main partner of a sales order is the sold-to party, of an opportunity is the prospect, ....
If you like a different main partner you can do this via process type customizing (field 'partner function ORG').
If you need to fill your own container values you can use CRM_ORGMAN_BADI method CRM_ORGMAN_ATTRIB_VALUE_FILL.
Or as mentioned by Shanto you can use your own logic with COM_PARTNER_BADI.
Best regards
Marion
Maybe you are looking for
-
Error in CRM WEB UI : Item category could not be determined.
Hi, I am trying to create Service Confirmation. I got an error sayin for line item 20: Item category could not be determined. Conversion Factors are invalid. Can you please tell me, when such type of error comes? Do we need to check any configuration
-
IPod touch is disabled. How do I fix it
My apple iPod touch is disabled. How do I restore it?
-
Transaction STAT is not in SAP ECC 6.0
Hello, Do you know what new transaction replaced the STAT transaction?? Exist the STAD but that only tells by 1 day... not a range day as STAT did...
-
JDeveloper 12.c ListView issue when elements are repeated.
Hi Using the ListView, and choosing the panel grid layout, if my view object has repeated rows, then the styles are not applied for those rows messing up the row (it doesn't display correctly, no height - width styles whatsoever). I have checked the
-
Compiling several Google Videos onto one DVD?
I would like to create a DVD composed of several movies I've downloaded off the internet. I converted these GVI movies to AVI, then to MOV format. Here's the desired result: User inserts DVD into the player. A menu appears with a list of movies conta