on 05-15-2008 1:36 PM
Hi Experts,
I need to implement the method CONTRACT_LOGSYS_DETERMINE (on the BADI BBP_DETERMINE_LOGSYS) setting the logical system to create Contracts in the Backend system.
But, I want to found this value (CV_LOGSYS) dinamically, without need to put the local system on the code (CV_LOGSYS = AABBCCC111).
Can anyone help me with this???
Thank you!
Best Regards,
Luciana
Hi,
You can use the FM "BBP_LOGICAL_SYSTEM_BY_TYPE" to get all the logical systems defined in SRM system.
For eg.to get the Logical system for your R/3 backend,pass the SYSTEM TYPE as "ERP_1.0"(For ECC 5.0) to the above FM and you will get the Logical system name in the table ET_LOGSYS(field is LOG_SYS).
Some of the possible values for the SYSTEM TYPES are;
ERP_1.0 - ECC 5.0
ERP_2.0 - ECC 6.0
LOCAL - Local B2B system(Local SRM)
R/3_4.70 - R/3 system - version 4.70
R/3_4.6C - R/3 system - version 4.6C
Also for sample codiing for the BADI ,refer the foll threads:
BR,
Disha.
Edited by: Craig Cmehil on Jul 9, 2008 9:01 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Enter value field of the parameter CV_LOGSYS in the method CONTRACT_LOGSYS_DETERMINE.
Sample code:
method IF_EX_BBP_DETERMINE_LOGSYS~CONTRACT_LOGSYS_DETERMINE.
DATA: ls_partner TYPE bbp_pds_partner,
ls_ORG type bbp_pds_org.
use the purchase org to determine if the document should be sent
to a backend system
read table IT_ORG into ls_org index 1.
if ls_org-proc_org_id = '50000027'.
cv_logsys = 'QW8CLNT250'.
elseif ls_org-proc_org_id = '50000953'.
cv_logsys = 'QPTCLNT100'.
endif.
endmethod.
BR,
Disha.
Do reward full points for useful answers.
Hi Pedro,
Disha gave you already the necessary hints and codes:
Hi,
Enter value field of the parameter CV_LOGSYS in the method CONTRACT_LOGSYS_DETERMINE.
Sample code:
method IF_EX_BBP_DETERMINE_LOGSYS~CONTRACT_LOGSYS_DETERMINE.
DATA: ls_partner TYPE bbp_pds_partner,
ls_ORG type bbp_pds_org.
use the purchase org to determine if the document should be sent to a backend system
read table IT_ORG into ls_org index 1.
if ls_org-proc_org_id = '50000027'.
cv_logsys = 'QW8CLNT250'.
elseif ls_org-proc_org_id = '50000953'.
cv_logsys = 'QPTCLNT100'.
endif.
endmethod.
BR,
Disha.
Cheers,
Claudia
User | Count |
---|---|
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.