Search help in cj12 to get partner number.
Hi
In cj12, partner tab, when I am selecting partner function PO or ZC , I am not getting search help for the partner number.
I have checked and debugged, I came to know we need to add the type of the partner numbers ie., MP and PE to get the search help in the include LIPARF00.
In the code ,
CLEAR H_MATCHCODE_OBJECT.
CASE G_TPAR-NRART.
WHEN 'KU'.
H_SHLPNAME = 'DEBI'.
WHEN 'LI'.
H_SHLPNAME = 'KRED'.
when 'PE'. "if activated HR-Matchcode active
h_shlpname = 'PREM'. "if not search_om_partner active
WHEN 'US'.
WHEN 'O '.
WHEN 'S '.
WHEN 'AP'.
IF F_AP IS INITIAL.
H_SHLPNAME = 'DEBI'.
ENDIF.
WHEN OTHERS.
message i015. " wird d
My functional not ready to use access key to change the code. Pls suggest is there any OSS notes for this.
Regards
Uma
Hi Uma,
May be this sap note help you to resolve your problem 180490.
Please check and implement if it meets your requirement
Thanks&Regards
Ajit Chirania
Similar Messages
-
How to get Partner Number based on Vendor Number
Hi,
I have vendor number(LIFNR), I would like to find out the partner number(PARNR) for this vendor number. I tried a lot but unable to find it.
Any help will be appreciated.
Thanks,
IbrahimHi...
have u checked the table VBPA(table for Sales Document: Partner)..in this table you can get the PARNR(Number of contact person)..
Hope this solve your problem.
Thanks
shankar -
Dear Experts.
I am new to ABAP and hence trying jmy hands on various ways of peforming a task.
I have a requirement. I want to maintain a database tables through MPP : ZLT_Auftrag (Refer Screen Shot 1: Doubt MPP1) and ZLT_Kunde (Refer Screen Shot2: Doubt MPP2)
The fields of ZLT_Kunde are: K1, K2, K3
The fields of ZLT_Auftrag are: A1, A2, A3, A4, P1 P2 and P3 are related as per the key field "A3" (Here A3 = K2)
I want the User to be able to Maintain this table through the Screen that I had created using MPP. (Plz refer the attached Screen Shot3:Doubt MPP3 of the SCREEN in MPP)
When I populate the Kunde name(K1) in the SCREEN (Can be done by F4 Search help), then on hitting the pushbutton "Get Kunde" the kunde Code (K2) appears . Now from here it can be deleted or even a new Kunde name and code can be saved dirctly to the database table : ZLT_Kunde. (Refer Screen Shoot4: Doubt MPP4)
For Example for Kunde (K1)= BASF, Kunde Code (K2) = BSF, the Auftrag should be all those values from ZLT_Auftrag (where A3 = BSF)
When I try to populate the Auftrag value on the SCREEN then on hitting F4 (already created for table ZLT_Auftrag in se11) then I get all the values of Auftrag (A1) from the table ZLT_Auftrag. (Ply refer Screen Shot 5: Doubt MPP5)
MY REQUIREMENT: Here I want that either through F4 help or through drop down ONLY those values of Auftrag-A1 should appear on the SCREEN which satisfies the condition: A3 = K2
I am unbale to get how to do that.
I need your valuable suggstions.
Regards
ChandanAnd the code of the MPP is:
*& Module Pool SAPMZDEMO_MPOOL_03
PROGRAM SAPMZDEMO_MPOOL_03.
TABLES: ZLT_MITA, ZLT_Kunde, ZLT_Auftrag, Zlt_Stdsatz.
DATA: flg_lock TYPE c,
* indx TYPE i,
* indxk TYPE i,
* indxa TYPE i,
* TCNT TYPE sy-tabix,
lv_msgv1 TYPE sy-msgv1.
*DATA: it_mita TYPE TABLE OF ZLT_mita,
* it_kunde TYPE TABLE OF ZLT_KUNDE,
* it_auftrag TYPE TABLE OF ZLT_AUFTRAG.
*& Module STATUS_9000 OUTPUT
* text
module STATUS_9000 output.
SET PF-STATUS 'ZSTATUS01'.
* SET TITLEBAR 'xxx'.
If flg_lock is Not initial.
LOOP at Screen.
If screen-group1 = 'G1'.
Screen-input = 0.
MODIFY SCREEN.
Endif.
ENDLOOP.
MESSAGE s000(8i) WITH 'Mitarbeiter already locked by user' lv_msgv1.
ENDIF.
endmodule. " STATUS_9000 OUTPUT
*& Module USER_COMMAND_9000 INPUT
* text
module USER_COMMAND_9000 input.
*To Populate Data into Mitarbeiter through Pushbuttons
CASE sy-ucomm.
When 'OK_GET'.
Clear : flg_lock.
IF ZLT_MITA-M1 is NOT INITIAL.
SELECT SINGLE *
FROM ZLT_MITA
Where M1 = ZLT_MITA-M1.
*To create a Lock Object so that when two or more employees are accessing the same data
* at the same time then for the new user the data gets locked and only can been seen in
*display mode
IF sy-subrc = 0.
CALL FUNCTION 'ENQUEUE_EZLT_MITALOCK'
EXPORTING
MODE_ZLT_MITA = 'E'
MANDT = SY-MANDT
M1 = ZLT_MITA-M1
* X_M1 = ' '
* _SCOPE = '2'
* _WAIT = ' '
* _COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3
IF sy-subrc <> 0.
flg_lock = 'X'.
lv_msgv1 = sy-msgv1.
ENDIF.
ENDIF.
ELSE.
MESSAGE S000(8i) With 'Enter Mitarbeiter Name'.
ENDIF.
When 'OK_SAVE'.
Modify ZLT_MITA.
IF sy-subrc = 0.
MESSAGE s000(8i) With 'Data Saved'.
ENDIF.
When 'OK_DELETE'.
IF ZLT_MITA-M1 is NOT INITIAL.
DELETE
FROM ZLT_MITA
Where M1 = ZLT_MITA-M1.
IF sy-subrc = 0.
MESSAGE S000(8i) With 'Data deleted'.
ENDIF.
ENDIF.
* When 'OK_FIRST'.
* indx = 1.
* When 'OK_NEXT'.
* indx = indx + 1.
* When 'OK_PREV'.
* indx = indx - 1.
* When 'OK_LAST'.
* Describe Table it_mita lines indx.
*To Populate Data into Kunde through Pushbuttons
When 'OK_GETK'.
IF ZLT_Kunde-K1 is NOT INITIAL.
SELECT SINGLE *
FROM ZLT_Kunde
Where K1 = ZLT_KUNDE-K1.
ELSE.
MESSAGE S000(8i) With 'Enter Kunde Name'.
ENDIF.
When 'OK_SAVEK'.
Modify ZLT_Kunde.
IF sy-subrc = 0.
MESSAGE s000(8i) With 'Data Saved'.
ENDIF.
When 'OK_DELETEK'.
IF ZLT_KUNDE-K1 is NOT INITIAL.
DELETE
FROM ZLT_KUNDE
Where K1 = ZLT_KUNDE-K1.
IF sy-subrc = 0.
MESSAGE S000(8i) With 'Data deleted'.
ENDIF.
ENDIF.
*To Populate Data into Auftrag Through Pushbuttons
When 'OK_GETA'.
IF ZLT_KUnde-K2 is NOT INITIAL.
SELECT SINGLE *
FROM ZLT_Auftrag
Where A3 = ZLT_Kunde-K2.
ELSE.
MESSAGE S000(8i) With 'Enter Kunde Name'.
ENDIF.
When 'OK_SAVEA'.
Modify ZLT_Auftrag.
IF sy-subrc = 0.
MESSAGE s000(8i) With 'Data Saved'.
ENDIF.
When 'OK_DELETEA'.
IF ZLT_Auftrag-A1 is NOT INITIAL.
DELETE
FROM ZLT_Auftrag
Where A1 = ZLT_Auftrag-A1.
IF sy-subrc = 0.
MESSAGE S000(8i) With 'Data deleted'.
ENDIF.
ENDIF.
*To Populate Data into Position Thorugh Pushbuttons
When 'OK_GETP'.
IF ZLT_Auftrag-A2 is NOT INITIAL.
SELECT SINGLE *
FROM ZLT_Auftrag
Where A3 = ZLT_Kunde-K2.
ELSE.
MESSAGE S000(8i) With 'Enter Kunde Name'.
ENDIF.
When 'OK_SAVEP'.
Modify ZLT_Auftrag.
IF sy-subrc = 0.
MESSAGE s000(8i) With 'Data Saved'.
ENDIF.
When 'OK_DELETEP'.
IF ZLT_Auftrag-A1 is NOT INITIAL.
DELETE
FROM ZLT_Auftrag
Where A1 = ZLT_Auftrag-A1.
IF sy-subrc = 0.
MESSAGE S000(8i) With 'Data deleted'.
ENDIF.
ENDIF.
When 'OK_EXIT'.
Leave Program.
When 'OK_CLEAR'.
Clear : ZLT_MITA, ZLT_KUNDE, ZLT_AUFTRAG.
* it_mita, it_kunde, it_auftrag,
CALL FUNCTION 'DEQUEUE_EZLT_MITALOCK'
EXPORTING
MODE_ZLT_MITA = 'E'
MANDT = SY-MANDT
M1 = ZLT_MITA-M1
* X_M1 = ' '
* _SCOPE = '3'
* _SYNCHRON = ' '
* _COLLECT = ' '
ENDCASE.
endmodule. " USER_COMMAND_9000 INPUT
*& Module user_cmd_9000 INPUT
* text
module user_cmd_9000 input.
If sy-ucomm = 'OK_CANCEL'.
LEAVE PROGRAM.
ENDIF.
IF sy-ucomm = 'OK_EXIT'.
LEAVE PROGRAM.
ENDIF.
endmodule. " user_cmd_9000 INPUT -
How can I call a specific search help from and still get all the tabs
hello
I use F4IF_FIELD_VALUE_REQUEST to display a specific search help from my program. This search help is included in a collective search help, but only the one specified search help is displayed.
Is it possible to call the collective search help and display one specific search help ?
Example: in CRM i have a collective search help BUPA. When F4 is issued from a customer field the search help "Search customer" should be displayed, and not the last search help which was activated - i.e.. "Search employee".
best regards
Peter ChristiansenHi,
you can try some thing like this..
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = 'KNA1'
FIELDNAME = 'KUNNR'
SEARCHHELP = 'DEBI'
TABLES
RETURN_TAB = LT_RETURN
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
vijay -
Help changing email to get serial number
I have added an extra nmber to the end of my student email and have therefore not recieved my serial number. how can i change my email, using the same product code, to get my serial number? (i have the student addition, where you must register to get your serial number)
Contact support directly by phohne or web chat.
Mylenium -
I wonder if anybody out there can help me.
I need to add a new tab to the search help for VBAK-VBELN (Sales Order Number).
The Search help name is called VMVA.
How do I go about doing this?Hi Stephan,
Its a collective search help. Fo to the included search help ASH_VMVA. Double click it you will find a follwoing included search helps in this
VMVAA
VMVAB
VMVAC
VMVAD
VMVAE
VMVAF
VMVAH
VMVAI
VMVAM
VMVAN
You have to insert a new search help (ZVMVAZ) here to create a new tab.
Create a new selection method using the tables you want the data from. Enter the input and output parameters.
Hope this helps.
Reply if you need more information
Reward if helpful **** -
Include own search help within new partner role (SRM 7.0)
Hi,
1) I have defined an own Partner Function and Partner scheme for Contracts.
2) I have defined an own table with partners and description (z-table).
3) I have defined an own search help including the own z-table.
4)I have included my own search help to the new defined partner scheme (spro --> cross application Basic settings --> Define partner schema --> partner determination procedure --> Search help name (own search help)
If I start a contract in the system, I can see my new partner Function within header data -> so far so good.
Also my own searchhelp is included, I can see the defined partners within my own z-table using F4 help.
Problem:
Partner ID and Description from Z-Table are not returned to Web Dynpro after selecting one partner from my result list.
Question:
How do i define a correct customer search function including an own table for partner functions/schema?
Do I have to use a search exit within my search help to return the Partner Id and Description correctly to the contract fields?
SRM standard seems to use the follwing exit:
BBP_F4IF_SHLP_EXIT_CLL_PARTNER
Any help concerning this issue is highly welcome
Thanks and best regards
AndreasHi
We can create the Contact person for the vendor with the following roles in SRM 7.0
SAP_EC_BBP_ADMINISTRATOR-->SAP SRM: Administrator
SAP_EC_BBP_PURCHASE-->mySAP SRM Purchaser
SAP_EC_BBP_ST_PURCHASER -->SAP SRM: Strategic Purchaser
Select the vendor created by you from the 'Business partner' page and click on 'Create Contact person'.
Enter the details required as per the requirement and save.
Regards,
Chandolu Ramesh -
Applying search help on the screen fields of a module pool program
hi all
i am creating a sales order against a purchase order i am stuck at applying the search helps
i have header data (only mandatory fields),items data,partner data(all mandatory fields)
i want to have input search help as if i select sales document type then corresponding sales organizations should appear and when i select all the header data the search help that is on the material number and partners role and number should appear corresponding to that header data
i found following search helps as:-
h_vakz and h_mvke
not able to apply please guide someone
thanks
varuni want to have input search help as if i select sales document type then corresponding sales organizations should appear
This would be quite opposite of what h_vakz does. h_vakz gives Sales document based on Sales org..and you want vice versa. Create a simple SH with
selection method : TVAKZ
AUART as importing only
VKORG as exporting only. So when you enter an AUART you get all VKORG it is defined in. I'm not aware of a standard search help which matches the requirement. If anybody does please help me.
i have header data (only mandatory fields),items data,partner data(all mandatory fields)
and when i select all the header data the search help that is on the material number and partners role and number should appear corresponding to that header data
You will have to be more specific sir..
not able to apply please guide someone
As for that just mention them in SCREEN->ELEMENT LIST->REFERENCES -
Search Help: Multiple Return Values in WD4A
Hello,
I would like to fill more than one fields on my WD4A screen when executing a search help for one input field.
So I need to manage somehow to get all the export parameters from the search help and post them to a context node.
Simple example: The customer sales view consists of sales org and customer number. The search help contains both of them as export parameter. So when the user selects one user I need to get and show the sales organization as well.
In "normal" SAP Dynpro development its quite easy as shown in thread
Re: Export search help results to more dynpro fields.
But how can I execute a search help in WD4A to get all the export parameters?
Thanks for you help!!
Kind regards,
HendrikHi,
found the answer by myself.
The solution is:
- Create a structure which contains the fields for the search help.
- then create the search help with all required export parameters.
- Assign the search help to the corresponding field in the structure.
- Create the context node with reference to the structure.
All context node attributes are then filled automatically. -
Generic problem for search help without values
Hi,
Always I open a search help without values I get the warning popup "No values found" but after this no link let me come back to the previous screen.
Does anybody know how I can solve this (in a standard way)
thanks
regardsHi
It seems to be a bug in the system.
<b>Please have a look at the following SAP OSS Notes -></b>
<u>Note 574604 - Various correction reports for EBP business partner
Note 1028643 - Input help for contact persons in purchase order
Note 843008 - EBP4.0 and higher: Terms of Payment, Texts and codes
526416 Structural enhancements LFA1
698246 EBP 4.0 address maintenance: Default address for address use
701321 EBP 3.5 address maintenance: Default address for address use
701323 EBP 3.0 address maintenance: Default address for address use
701384 BBP 2.0C address maintenance:Default address for address use
690619 Plants are not transferred during location replication
641960 New processing of terms of payment in EBP 3.5
628386 Incorrect link for EBP for 'External business partners'
Note 544392 Error in search helps EBP 2.0
Note 544816 Error in search helps EBP 3.5
Note 544713 Error in search helps EBP 3.0</u>
Please raise a customer OSS message with SAP as well.
Regards
- Atul -
Hi Folks,
I was wondering if its possible to create a Search Help, with several fields to export, assigned to a field on a dynpro and when you make the selection of the row on the search help the export fields get assigned to the other fields on the screen with same data element.
For example:
Search Help export fields = BELNR and BUZEI.
Fields on Screen = BUKRS, LIFNR, BELNR, BUZEI.
The search help is assigned to the field BELNR, but I want that when I do the selection on the search help it does insert the value of BUZEI in the screen also.
So my question is, is this possible? If this is possible, how can I achieve this? (Really appreciate if you can give me examples)
Thanks in advance for your help.
Regards,
Gilberto LiHi Gill,
After you are calling "F4_IF_FIELD_VALUE_REQUEST",use the following logic to populate the remaining field values to the corresponding row.
Eg:
CALL Function "F4_IF_FIELD_VALUE_REQUEST ".
you have to read the document no choosen by the user from the "return" tab.
Then read the value of the remaing fields from itab for the corresponding doc.no.
pass it to the following internal table.
to get the line no in which the user clicked the search help ,you have to use "GET Cursor Line " statement.and populate that line no in SY-STEPL value of the following internal table.
REFRESH dynpfields.
CLEAR dynpfields.
dynpfields-fieldname = 'EKPO-EBELN'.
dynpfields-fieldvalue = '1300000' "wa_ekpo-ebeln.
dynpfields-stepl = l_stepl.
APPEND dynpfields.
dynpfields-fieldname = 'EKPO-EBELP'.
dynpfields-fieldvalue = '00020' "wa_ekpo-ebelp.
dynpfields-stepl = l_stepl.
APPEND dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'SAPLZZ_EKKO' "Program name
dynumb = '0100' "Screen number
TABLES
dynpfields = dynpfields
EXCEPTIONS
OTHERS = 0. -
Search help behavior with user exit
When a search help is executed you get a result (that appears in the internal table record_tab that satisfies your selection criteria. If, without leaving the search help, you enter a new selection it can return an entirely different set of records. That is the normal behavior and what users expect.
However, I do some processing in the CALLCONTROL-STEP = 'DISP' that pares down the result set in record_tab based on the users authorization. When I return to another selection it operates on the pared down result set in record_tab and does not make another selection. i.e. record_tab is not refereshed for the new selection. I am clearly doing something wrong.
This is the specific case: Users are limited to customers in their specific sales group defined in KNVV-VKGRP. I use an exit in search help DEBIS to check whether the user is authorized for the sales group. A user is authorized for users in group 001 and 042. There first selection is from sales group 001. It returns 50 records. They decide that they chose the wrong group so they select sales group 042. It returns 0 records. However, had they selected from group 042 from the outset they would have had two hits. The second pass is working on the selection set from the first pass. (or so it seems)
Any thoughts?Hi Corwin
<REMOVED BY MODERATOR>
FUNCTION z_shlp_exit_bpartner_reltyp.
*"*"Local Interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCT
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" VALUE(SHLP) TYPE SHLP_DESCR
*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
DATA: rc LIKE sy-subrc,
dialog_canceled TYPE c,
lc_bp_shlp_badi TYPE funcname VALUE 'BUP_SHLP_EXIT_BADI'.
TYPES: BEGIN OF ls_view.
INCLUDE STRUCTURE but050.
TYPES: END OF ls_view.
DATA: lt_view TYPE STANDARD TABLE OF ls_view,
wa_view TYPE ls_view.
DATA: wa_shlp LIKE LINE OF shlp-fielddescr.
CALL FUNCTION 'F4UT_OPTIMIZE_COLWIDTH'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
CHANGING
shlp = shlp
callcontrol = callcontrol.
*------ Rolle auf jeden Fall als Mußfeld ------------------------------
CALL FUNCTION 'F4UT_PARAMETER_REQUIRED'
EXPORTING
parameter_required = 'RELTYP'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
CHANGING
shlp = shlp
callcontrol = callcontrol.
* STEP SELONE (Select one of the elementary searchhelps)
* This step is only called for collective searchhelps. It may be used
* to reduce the amount of elementary searchhelps given in SHLP_TAB.
* The compound searchhelp is given in SHLP.
* If you do not change CALLCONTROL-STEP, the next step is the
* dialog, to select one of the elementary searchhelps.
* If you want to skip this dialog, you have to return the selected
* elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
* either to 'PRESEL' or to 'SELECT'.
IF callcontrol-step = 'SELONE'.
* PERFORM SELONE .........
EXIT.
ENDIF.
* STEP PRESEL (Enter selection conditions)
* This step allows you, to influence the selection conditions either
* before they are displayed or in order to skip the dialog completely.
* If you want to skip the dialog, you should change CALLCONTROL-STEP
* to 'SELECT'.
* Normaly only SHLP-SELOPT should be changed in this step.
IF callcontrol-step = 'PRESEL'.
*--... Datendeklartionen.
CLASS cl_exithandler DEFINITION LOAD.
DATA: lv_exit_object TYPE REF TO if_ex_bupa_augrp, "#EC NEEDED
ls_auth_selopt TYPE ddshselopt,
lt_auth_selopt TYPE TABLE OF ddshselopt WITH DEFAULT KEY.
CALL FUNCTION 'F4UT_PARAMETER_REQUIRED'
EXPORTING
parameter_required = 'RELTYP'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
CHANGING
shlp = shlp
callcontrol = callcontrol.
* Call "AUGRP" badi
CALL FUNCTION 'FUNCTION_EXISTS'
EXPORTING
funcname = lc_bp_shlp_badi
EXCEPTIONS
function_not_exist = 1
OTHERS = 2.
IF sy-subrc EQ 0.
CALL FUNCTION lc_bp_shlp_badi
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
CHANGING
shlp = shlp
callcontrol = callcontrol.
rc = sy-subrc.
ENDIF.
EXIT.
ENDIF.
* STEP SELECT (Select values)
* This step may be used to overtake the data selection completely.
* To skip the standard seletion, you should return 'DISP' as following
* step in CALLCONTROL-STEP.
* Normally RECORD_TAB should be filled after this step.
* Standard function module F4UT_RESULTS_MAP may be very helpfull in this
* step.
IF callcontrol-step = 'SELECT'.
DATA: BEGIN OF ls_result,
partner LIKE but000-partner,
weekday LIKE crmm_tour_i-weekdayfrom,
terr_id LIKE crmm_territory-terr_id,
mc_name1 LIKE but000-mc_name1,
mc_name2 LIKE but000-mc_name2,
reltyp LIKE but050-reltyp,
partner2 LIKE but000_td-partner,
city LIKE adrc-city1,
post_code1 LIKE adrc-post_code1,
tel_number LIKE adrc-tel_number,
region LIKE adrc-region,
END OF ls_result.
* Local Variables
DATA: lv_resultcount TYPE i,
lv_adrno TYPE but020-addrnumber,
lv_name1 TYPE but000-mc_name1,
lv_name2 TYPE but000-mc_name2,
lv_pc TYPE adrc-post_code1,
lv_tele TYPE adrc-tel_number,
lv_guid TYPE but000-partner_guid,
lv_last TYPE adrc-name1,
lv_first TYPE adrc-name2,
lv_region TYPE adrc-region,
lv_city1 TYPE adrc-city1,
lv_trguid TYPE crmm_territory-terr_guid.
* Local Tables
DATA: ls_ddshselop TYPE ddshselopt,
lt_ddshselops TYPE ddshselops,
lt_result LIKE STANDARD TABLE OF ls_result,
wa_result LIKE ls_result.
* Ranges
RANGES: lr_reltyp FOR but050-reltyp,
lr_partner FOR but000-partner,
lr_name1 FOR but000-mc_name1,
lr_name2 FOR but000-mc_name2,
lr_region FOR adrc-region,
lr_city FOR adrc-city1,
lr_tele FOR adrc-tel_number,
lr_pc FOR adrc-post_code1.
SELECT rltyp FROM z_bupar_td INTO TABLE lt_view.
lt_ddshselops = shlp-selopt.
LOOP AT lt_ddshselops INTO ls_ddshselop.
CASE ls_ddshselop-shlpfield.
WHEN 'RELTYP'.
MOVE-CORRESPONDING ls_ddshselop TO lr_reltyp.
APPEND lr_reltyp.
WHEN 'PARTNER'.
MOVE-CORRESPONDING ls_ddshselop TO lr_partner.
APPEND lr_partner.
WHEN 'MC_NAME1'.
MOVE-CORRESPONDING ls_ddshselop TO lr_name1.
APPEND lr_name1.
WHEN 'MC_NAME2'.
MOVE-CORRESPONDING ls_ddshselop TO lr_name2.
APPEND lr_name2.
WHEN 'REGION'.
MOVE-CORRESPONDING ls_ddshselop TO lr_region.
APPEND lr_region.
WHEN 'CITY'.
MOVE-CORRESPONDING ls_ddshselop TO lr_city.
APPEND lr_city.
WHEN 'TEL_NUMBER'.
MOVE-CORRESPONDING ls_ddshselop TO lr_tele.
APPEND lr_tele.
WHEN 'POST_CODE1'.
MOVE-CORRESPONDING ls_ddshselop TO lr_pc.
APPEND lr_pc.
ENDCASE.
ENDLOOP.
SELECT * FROM but050 INTO TABLE lt_view
WHERE reltyp IN lr_reltyp
AND partner1 IN lr_partner.
LOOP AT lt_view INTO wa_view.
wa_result-partner = wa_view-partner1.
wa_result-reltyp = wa_view-reltyp.
*___ adress details
SELECT SINGLE addrnumber FROM but020 INTO lv_adrno
WHERE partner EQ wa_result-partner.
SELECT SINGLE post_code1 tel_number name1 name2 region city1 FROM adrc
INTO (lv_pc , lv_tele, lv_last, lv_first, lv_region, lv_city1)
WHERE addrnumber EQ lv_adrno AND region IN lr_region
AND city1 IN lr_city AND tel_number IN lr_tele
AND post_code1 IN lr_pc.
*___ names
SELECT SINGLE mc_name1 mc_name2 FROM but000
INTO (lv_name1 , lv_name2)
WHERE partner IN lr_partner
AND mc_name1 IN lr_name1
AND mc_name2 IN lr_name2.
*___ CRM patner guid
SELECT SINGLE partner_guid FROM but000
INTO lv_guid
WHERE partner EQ wa_result-partner.
*___ Territory guid
SELECT SINGLE terr_guid FROM crmm_territory_v
INTO lv_trguid
WHERE guid EQ lv_guid.
SELECT SINGLE terr_id FROM crmm_territory
INTO wa_result-terr_id
WHERE terr_guid EQ lv_trguid.
*__ weekfrom
SELECT SINGLE weekdayfrom FROM crmm_tour_i
INTO wa_result-weekday
WHERE guid EQ lv_guid.
wa_result-post_code1 = lv_pc.
wa_result-tel_number = lv_tele.
wa_result-mc_name1 = lv_name1.
wa_result-mc_name2 = lv_name2.
wa_result-partner2 = lv_first.
wa_result-region = lv_region.
wa_result-city = lv_city1.
APPEND wa_result TO lt_result.
lv_resultcount = lv_resultcount + 1.
IF lv_resultcount GE callcontrol-maxrecords.
EXIT.
ENDIF.
CLEAR: lv_pc,lv_tele,lv_name1,lv_name2,lv_first,lv_region,lv_city1.
CLEAR: wa_view, wa_result.
ENDLOOP.
* Prepare for output
CALL FUNCTION 'F4UT_RESULTS_MAP'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = lt_result
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
illegal_structure = 1
OTHERS = 2.
IF rc = 0.
callcontrol-step = 'DISP'.
ELSE.
callcontrol-step = 'EXIT'.
ENDIF.
EXIT. "Don't process STEP DISP additionally in this call.
ENDIF.
* STEP DISP (Display values)
* This step is called, before the selected data is displayed.
* You can e.g. modify or reduce the data in RECORD_TAB
* according to the users authority.
* If you want to get the standard display dialog afterwards, you
* should not change CALLCONTROL-STEP.
* If you want to overtake the dialog on you own, you must return
* the following values in CALLCONTROL-STEP:
* - "RETURN" if one line was selected. The selected line must be
* the only record left in RECORD_TAB. The corresponding fields of
* this line are entered into the screen.
* - "EXIT" if the values request should be aborted
* - "PRESEL" if you want to return to the selection dialog
* Standard function modules F4UT_PARAMETER_VALUE_GET and
* F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
IF callcontrol-step = 'DISP'.
* PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB
* CHANGING SHLP CALLCONTROL.
EXIT.
ENDIF.
ENDFUNCTION.
Edited by: Alvaro Tejada Galindo on Jan 24, 2008 4:32 PM -
hello,
I have create a search help in KRED. I have a field LIFN2 which is the "reference to other vendor field" in my help. when I go to the MIRO transaction and goto the details tab and click in the field "inv.party", the search appears. the problem that I am having is that when I double clik on one the records in the search list, it is supposed to fill in the vendor number with the LIFN2 value but it is not. I have this selected for import and export in the search help. I am not sure if there is something else that I have to do. If some one could please help me , that would be apporeciated
thanks in advance for the helpthanks for the respopnses
I have the EXP checked for this field. when I active the search help, I get warnings and when you click on this warning
<b>No values can be returned from contained search help ZVENDORS_PARTN </b>
I get the following
<i>Diagnosis
The collective search help in question contains search help ZVENDORS_PARTN. When parameters were assigned to these two search helps, however, no EXPORT parameter of ZVENDORS_PARTN was assigned to an EXPORT parameter of the collective search help. In an input help process in which the user selects elementary search help ZVENDORS_PARTN (or an elementary search help contained in collective search help ZVENDORS_PARTN), no value is returned to the screen.
System response
The action is continued.
Procedure
If ZVENDORS_PARTN is directly included in the collective search help in question, check the parameter assignment for this inclusion. It is possible that some meaningful parameter assignments were not defined. It is also possible that the EXPORT flag is missing for one or more parameters of one of the two specified search helps.
If ZVENDORS_PARTN is contained in several levels of the collective search help in question, you should check the parameter assignments and parameter attributes of all the levels in between.</i>
I get this message in the following sections
SHLP KRED_AG was adjusted
SHLP KRED_C was adjusted
SHLP KRED_T was adjusted
SHLP MEBO_KRED was adjusted
I am not sure what to look at now to try to correct this -
Hiding the Birthday Column in the search help in transaction PA20
Steps to generate the issue.
1) Goto transaction PA20.
2) Use the search help (Press F4) in the personnel number field.
A search help pops up.
3) In the 'Last Name - First Name' tab enter 'M*' in the 'Last Name' field and select the enter button.
A list of employees is displayed. In my system along with the last name and first names the employees birthday is displayed.
The business would like this field hidden as they have decided that this is sensitive information that they do not want everybody to have access to.
Can this be hidden by making a change to configuration? How do I go about this?Dear Mark,
After pressing F4, when the list will be shown, select the heading of the birthday coloumn, right click, then select personalize, then select Birth date, and click hide fields switch which is in the same screen, then click enter.
See your problem is solved.
Thanks & Regards
Jasaswi -
How to get paragraph number of selected text in ID CS4
Hi,
Can anybody help me how to get paragraph number of selected text in Indesign cs4.
Thanks,
GopalAh, I see -- thanks. Turns out that there's no difference in speed between texts.itemByRange(), characters.itemByRange(),and insertionPoints.itemByRange(). In a document with 170 pages of text, and with the cursor in the last paragraph, the second and third lines, below (and your function), give exactly the same result:
t = app.selection[0];
t.parentStory.texts.itemByRange (t.parentStory.insertionPoints[0], t).paragraphs.length;
t.parentStory.characters.itemByRange (t.parentStory.characters[0], t).paragraphs.length;
Peter
Maybe you are looking for
-
Button: open link in new window
Hi all! Quick question: Is there an API to launch a URL in a new window? I could easily use a LinkToUrl (with target=_TOP), but would like to use a button for aesthetic reasons. Thanks, faB
-
Copy controls from quotation to contract
Hi, My client want to create contract w.r.t quatation. I maintained the copy controls for the same but target quantity is not getting updated in contract w.r.t qutation 2)while creating contract without reference order quntity is not getting updated.
-
Hello, please could you tell me how i can split the data of an internal table into datapackages in my FM used for BI data extraction? thanks! MArgit
-
OAS 4.0.8+8i on NT
We are recently testing a cartridge that runs OK on 3.0.1, on 4.0.8 in order to gain some speed. This is a CWEB cartridge. OAS is under priority scheduling (default). We do seem to get a 30K blob faster than on 3.0.1, but every 20 or so queries (same
-
How to close Middleware server of CRM
Dear All, When I create a order in CRM, If I modify it immediately: system will give me a message: CRM_ORDER019 "Document is being distributed - changes are not possible" But our CRM system is singleton, and not connecte with R/3. S