Display Partner Function on the basis of Selected Partner Function
We have multiple "Ordering Address" and "Goods Supplier" for a particular vendor. When we use a particular vendor at the time of PO creation, we dont want all the OA and GS to be populated in the "Partner Functions" tab. The OA should be populated based on the Vendor & P Org, and on the basis of OA should be selected, the "GA" related to the OA should be populated.For ex, if each vendor has 5 OA and each OA has 3 GS and the user selects a vendor then all 5 OA should be displayed. When the user selects one of the OA, all the 3 GS related to that OA should be displayed.
Is this possible to maintain this scenario?If yes, how can we implement it?
Thanks
TM
Hi,
You can accomplish the above in below EXIT's
There are two function modules available to pass partner data to the PO
EXIT_SAPLEKPA_001 include ZXM06U07
EXIT_SAPLEKPA_002 include ZXM06U08
Also further you should write a logic in the BADI ME_PROCESS_PO_CUST
regards,
Lalita
Similar Messages
-
Call a special function in the dll using Call Library Function Node????
Dear all,
I am calling a special function in the dll using call library function node. There is a input parameter that it is a enum type in this function. I don't know how to deal this parameter for calling this function.Has anybody solved this problem?Please advise!
I am appreciated of you anytime.Most of the times an enum is just a U8/U16/U32, internally so probably you can call it with just a U8/U16/U32 or something. For the correct value you have to look at the definition.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
Display different roles on the basis of Desktops loaded.
Hi
i hav created a URL alias Rule.
I am loading different desktops on the basis of URL alias at runtime...
Scenario is :
Suppose my user is assigned 2 roles.
I Wish role 1 must get displayed only in desktop 1
Role 2 must get displayed only in desktop 2
What is happening :
Whatever desktop is loaded, both roles are getting displayed.
Because both roles are assigned to authenticated user, thats y both are getting displayed.
Is there a solution for this...
By ant means....coding, configuration......anything which could be done...Saurabh,
Please refer to this thread.
Dynamic portal Themes
Refer to the blog in this thread for clarity.
Good Luck!
Sandeep Tudumu -
Adding functionality to the pushbuttons in selection screen
Hi,
Where to add the logic to the pushbutton in the selection screen.In the PBO or PAI of that screen.If possible can anyone send an example for that?Hey!
Check out this sample code.
REPORT z_prog.
DATA:
BEGIN OF fs_spfli,
carrid LIKE spfli-carrid, " Airline Code
connid LIKE spfli-connid, " Flight Connection Number
airpfrom LIKE spfli-airpfrom, " Departure airport
airpto LIKE spfli-airpto, " Destination airport
deptime LIKE spfli-deptime, " Departure time
arrtime LIKE spfli-arrtime, " Arrival time
END OF fs_spfli,
BEGIN OF fs_sflight,
carrid LIKE sflight-carrid, " Airline Code
connid LIKE sflight-connid, " Flight Connection Number
fldate LIKE sflight-fldate, " Flight date
seatsmax LIKE sflight-seatsmax, " Maximum seats in economy class
seatsocc LIKE sflight-seatsocc, " Occupied seats in economyclass
END OF fs_sflight,
w_checkbox TYPE c, " Variable for checkbox
w_currentline TYPE i, " Variable to display current
" line
w_lines TYPE i,
w_read TYPE c .
* Internal Table to hold flight schedule information *
DATA:
t_spfli LIKE
TABLE OF
fs_spfli.
* Internal Table to hold flight information *
DATA:
t_sflight LIKE
TABLE OF
fs_sflight,
t_sflight1 LIKE t_sflight.
* START-OF-SELECTION Event *
START-OF-SELECTION.
PERFORM get_data_spfli.
* END-OF-SELECTION Event *
END-OF-SELECTION.
SET PF-STATUS 'MENU'.
PERFORM display_data_spfli.
* TOP-OF-PAGE Event *
TOP-OF-PAGE.
PERFORM header_table_spfli.
* AT LINE-SELECTION EVENT *
AT LINE-SELECTION.
SET PF-STATUS space.
IF sy-lsind EQ 1 AND sy-lilli GE 4.
PERFORM get_data_sflight.
PERFORM display_data_sflight.
PERFORM flag_line.
ENDIF. " IF sy-lsind EQ 1..
* AT USER-COMMAND *
AT USER-COMMAND.
IF sy-lsind EQ 1.
SET PF-STATUS space.
CASE sy-ucomm.
WHEN 'DISPLAY'.
PERFORM get_data_sflight1.
PERFORM display_data_sflight.
WHEN 'SELECTALL'.
PERFORM select_all.
PERFORM flag_line.
WHEN 'DESELECTAL'.
PERFORM deselect_all.
PERFORM flag_line.
ENDCASE. " CASE sy-ucomm
ENDIF. " IF sy-lsind EQ 1
* TOP-OF-PAGE DURING LINE-SELECTION *
TOP-OF-PAGE DURING LINE-SELECTION.
PERFORM sec_list_heading.
*& Form get_data_spfli
* This subroutine fetches the data from SPFLI
* This subroutine does not have parameters to pass
FORM get_data_spfli .
SELECT carrid " Airline Code
connid " Flight Connection Number
airpfrom " Departure airport
airpto " Destination airport
deptime " Departure time
arrtime " Arrival time
FROM spfli
INTO TABLE t_spfli.
ENDFORM. " GET_DATA_SPFLI
*& Form display_data_spfli
* This subroutine displays the data of SPFLI
* This subroutine does not have parameters to pass
FORM display_data_spfli .
LOOP AT t_spfli INTO fs_spfli.
WRITE: /02 w_checkbox AS CHECKBOX,
05 w_read,
fs_spfli-carrid UNDER text-001,
fs_spfli-connid UNDER text-002,
fs_spfli-airpfrom UNDER text-003,
fs_spfli-airpto UNDER text-004,
fs_spfli-deptime UNDER text-005,
fs_spfli-arrtime UNDER text-006.
HIDE:
fs_spfli-carrid,
fs_spfli-connid.
ENDLOOP. " LOOP AT t_spfli..
ENDFORM. " DISPLAY_DATA_SPFLI
*& Form header_table_spfli
* This subroutine diplays the headings of table spfli
* This subroutine does not have parameters to pass
FORM header_table_spfli .
WRITE: /10 text-001 COLOR 4,
25 text-002 COLOR 4,
40 text-003 COLOR 4,
55 text-004 COLOR 4,
70 text-005 COLOR 4,
85 text-006 COLOR 4.
ENDFORM. " HEADER_TABLE
*& Form get_data_sflight
* This subroutine fetches the data from SFLIGHT
* This subroutine does not have interface parameters to pass
FORM get_data_sflight .
SELECT carrid " Airline Code
connid " Flight Connection Number
fldate " Flight date
seatsmax " Maximum seats in economy class
seatsocc " Occupied seats in economyclass
FROM sflight
INTO TABLE t_sflight
WHERE carrid EQ fs_spfli-carrid
AND connid EQ fs_spfli-connid.
ENDFORM. " GET_DATA_SFLIGHT
*& Form display_data_sflight
* This subroutine displays the SFLIGHT data
* This subroutine does not have interface parameters to pass
FORM display_data_sflight .
LOOP AT t_sflight INTO fs_sflight.
WRITE: / fs_sflight-carrid UNDER text-001,
fs_sflight-connid UNDER text-002,
fs_sflight-fldate UNDER text-007,
fs_sflight-seatsmax UNDER text-008 LEFT-JUSTIFIED,
fs_sflight-seatsocc UNDER text-009 LEFT-JUSTIFIED.
ENDLOOP.
CLEAR: fs_sflight.
ENDFORM. " DISPLAY_DATA_sflight
*& Form sec_list_heading
* This subroutine diplays the headings of table spfli
* This subroutine does not have interface parameters to pass
FORM sec_list_heading .
WRITE: /2 text-001 COLOR 4,
15 text-002 COLOR 4,
33 text-007 COLOR 4,
45 text-008 COLOR 4,
60 text-009 COLOR 4.
ENDFORM. " SEC_LIST_HEADING
*& Form get_data_sflight1
* This subroutine displays the data from SFLIGHT according to checkbox
* clicked.
* This subroutine does not have interface parameters to pass
FORM get_data_sflight1 .
DATA:
lw_checkbox TYPE c.
DESCRIBE TABLE t_spfli LINES w_lines.
DO w_lines TIMES.
w_currentline = 3 + sy-index.
CLEAR:
w_checkbox,
fs_spfli.
READ LINE w_currentline FIELD VALUE
w_checkbox INTO lw_checkbox
fs_spfli-carrid INTO fs_spfli-carrid
fs_spfli-connid INTO fs_spfli-connid.
IF sy-subrc EQ 0.
IF lw_checkbox EQ 'X'.
SELECT carrid " Airline Code
connid " Flight Connection Number
fldate " Flight Date
seatsmax " Max Seats
seatsocc " Occupied Seats
FROM sflight
INTO TABLE t_sflight1
WHERE carrid EQ fs_spfli-carrid
AND connid EQ fs_spfli-connid.
IF sy-subrc EQ 0.
APPEND LINES OF t_sflight1 TO t_sflight.
ENDIF. " IF sy-subrc EQ 0.
ENDIF. " IF lw_checkbox EQ 'X'
ENDIF. " IF sy-subrc EQ 0.
ENDDO. " DO w_lines TIMES
ENDFORM. " GET_DATA_SFLIGHT1
*& Form select_all
* This subroutine selects all the records of SPFLI
* This subroutine does not have interface parameters to pass
FORM select_all .
DESCRIBE TABLE t_spfli LINES w_lines.
DO w_lines TIMES.
w_currentline = sy-index + 3.
READ LINE w_currentline FIELD VALUE
w_checkbox INTO w_checkbox.
IF sy-subrc = 0.
MODIFY LINE w_currentline FIELD VALUE
w_checkbox FROM 'X'.
ENDIF. " IF sy-subrc = 0.
ENDDO. " DO lw_line TIMES.
ENDFORM. " SELECT_ALL
*& Form deselect_all
* This subroutine deselects all the records of SPFLI
* This subroutine does not have interface parameters to pass
FORM deselect_all .
DESCRIBE TABLE t_spfli LINES w_lines.
DO w_lines TIMES.
w_currentline = sy-index + 3.
READ LINE w_currentline FIELD VALUE
w_checkbox INTO w_checkbox.
IF sy-subrc = 0.
MODIFY LINE w_currentline FIELD VALUE
w_checkbox FROM ' '.
ENDIF. " IF sy-subrc = 0.
ENDDO. " DO lw_line TIMES.
ENDFORM. " DESELECT_ALL
*& Form flag_line
* This subroutine flags the line which has been read
* This subroutine does not have interface parameters to pass
FORM flag_line .
DESCRIBE TABLE t_spfli LINES w_lines.
DO w_lines TIMES.
w_checkbox = 'X'.
READ LINE sy-lilli FIELD VALUE
w_read INTO w_read
w_checkbox INTO w_checkbox.
IF sy-subrc EQ 0.
MODIFY CURRENT LINE
FIELD FORMAT w_checkbox INPUT OFF
FIELD VALUE w_read FROM '*'.
ENDIF. " IF sy-subrc EQ 0
ENDDO. " DO w_lines TIMES
ENDFORM. " FLAG_LINE
Regards
Abhijeet
Edited by: Abhijeet Kulshreshtha on Jul 11, 2008 9:10 AM -
Changing values of substitution variables on the basis of selection in Page
Hi All,
I am developing a classic planning application using hyperion 11.1.2.1. All of my data forms are based on substitution variables i.e. I define three variables:
sv_CurrYear = FY12
sv_CurrYearMinus1 = FY11
sv_CurrYearMinus2 = FY10
and i am using these 3 variables in columns section of my data form i.e First Column contains sv_CurrYearMinus2, second column contains sv_CurrYearMinus1 and third column contains sv_CurrYearMinus2.
Now my understanding is that every year system admin will update the values of these variable and data form updated automatically.
But my client want to have such a mechanism through which he would be able to see the data of previous years. i.e He want to have Year dimension in Page section, so that he will select his desired year from drop down and as a result form will display the desired year's data. Now if i have only one column(i.e curr year) in my data form then i could easily do that but since i have three different year's so it didn't seems easy to me.
One idea that originate in my mind is that i add a custom dim by the name of Custom year and its member would be like this CY10, CY11, CY12 ... and so on, then i will place this dimension in Page so that user will select his desired year and when he presses the "Go" button then some sort of script executed which change the values of my Substitution Variables. But i don't know whether its possible or not? if yes, then how or any other alternate idea?I dont know if it is possible and make sense in your application, but you could create a new Custom Dimension with the members "Current Year" "Previous Year" etc. All values of the current plan period would be saved to "Current Year" and if you change to next plan period (FY+1) you need to copy the data from FY->"Current Year" to FY+1->"Previous Year" and so on.
Then you would be able to put the Financial Year Dimension in Page and the Custom Dimension in Columns.
Disadvantage: your cube data would grow faster.
Kind regards
André -
How to print smartform on the basis of selection criteria
i want to print multiple pages in smartform by using select-options bkpf-belnr.
ex:1500002103 to 1500002106.
print all the pages lie in between this range.
Moderator message : Spec dumping is not allowed, search for available information. Thread locked.
Edited by: Vinod Kumar on Sep 27, 2011 12:21 PMHi,
Refer the link select option in smartforms and read what i suggested..
Regards,
Dhina.. -
Calling function on the basis of parameter passing in oracle discoverer
Hi,
In my report i want to pass parameter for currency and want to call a function. Is it possible in oracle discoverer to call function created in oracle database.Hi Rod,
e.g i have report. While i run the report parameter wizard dialog box open. i have different parameter like Module, Country, Date etc right now, not using currency.
The report shows me the following fields
Actual Sales, last yr Sales, Target
1000 5666 100000
etc. And all Dara in Currency SAR by default.
Now,
There is one another parameter i.e. Currency and i entered the value for currency as INR. and also enter the other parameters
I want that as this currency INR enter,it call that currency conversion function and convert the data in INR.
and when i click the OK button in Parameter wizard I want to see the same data in INR currency.
If the above is possible then please tell my by steps.
if you can share your email id so that i can show you the report, and clear my requirement.
Thanks
kam -
Alv oops (editable cells on the basis of selected rows)
Hi Gurus,
I am creating alv grid by using OOPS. It has multiple rows and five columns. Once it gets populated, I need to select more than one row. After selecting the rows, my requirement is to enable column two only for the selected rows for editing. I have tried all the possible demo programs but they are not fulfilling my requirement.
Sometimes It gives runtime error - Error inserting into a table with unique key and sometimes something else.
Please help asap. It's really urgent.
Thanks in advance.
RituHi,
Refer the sample code
https://forums.sdn.sap.com/click.jspa?searchID=12153389&messageID=1593610
Regards
Kiran Sure -
Remove Server function in the Netscape Console does not function
Remove Server Instance does not function or not accessible. Am trying to remove a server from the console (Netscape Console 4.1) unfortunately i cannot access this specific functionality. Already tried re-installing but it does'nt function
It is probably because the server you're trying to remove is the Directory Server containing the Configuration Information for the Admin (ie suffix o=NetscapeRoot).
Trying to remove this specific instance of the Directory Server is like cutting the branch where you're sitting.
Ludovic. -
Hundreds of fields to be populated on the basis of various check box selection
Hi,
I have a requirement I have to display 593 fields on the basis of user's checkbox selection. There are 8 checkboxes and multiple checkbox combinations which is not mentioned. I need to consider all possible selection and populate values accordingly. If user selects any 2 or 3 or 7 checkboxes, I need to display the inner join of (respective tables)of all the selected checkboxes. please suggest me the best possible way that will take least amount of time. Do i need to populated all 593 fields multiple times as per the user selection? please helpHi..
You need to create structures only during the Run time.
Based upon the check box, we need to create a dynamic internal table or structures at run time.
Runtime Type Services (RTTS) - ABAP Development - SCN Wiki
SAP Cafe Corner!: Advanced ABAP Programming
Please check these link. Still if you have any issues. Please let me know.
SKR -
[Base] member selection for Entities is incomplete ?
When I choose the [Base] member selection for Entity, the list is incomplete. I was told this was a bug and it would not be fixed until we move from HFM 9.3.1 to Fusion 11. Other than manually creating a grid with all base entities then maintaining that list going forward, does anyone have any suggestions on how to manage this ? We use this grid to lock/unlock all base entities.
Shot in the dark but worth noting...
Do you have more than 1024 base entities? A common oversight is that your grid setting are set to display only 1024 rows (default) and you have to click on the down arrow in the HFM toolbar to view the next page of rows/entities. You can also increase the # of rows to display in a grid so as to display all rows on the same page. -
Integrated Planning: Planning Functions in the Web - Issues with Binding
Hi
We are on SPS 11 and are having some difficulties getting our Planning Functions to execute corerctly in the web templates.
I have created a simple planning function that performs a distribution.
The Planning Function works as expected using the plannning wizard and ristricts the data based on the Filter that I have created on the Aggregation Level as well as the Planning Function Selections.
I have created a query and web template that contains the same restriction as the filter in my aggregation level. The Agg Level filter / planning function and Query Filter all contain the Hierarchy Node Variable ZN_CC1 for the standard Cost Center Hierarchy.
I have created the following 4 Planning Buttons to test the execution of the Planning Function in the Web:
1. Planning Function Simple. Binding ref to the DP_1 (Query), Variable = Hierarchy Variable ZN_CC1, Planning Function ZDistrib1.
2. Planning Function Simple. Binding ref to the DP_1 (Query), Variable = Variable Input String Default ZN_CC1, Planning Function ZDistrib1.
3. Planning Function Simple. Binding ref to the DP_1 (Query), Variable = Hierarchy Variable ZN_CC1, Planning Function ZDistrib1. Display variable property selected.
4. Planning Function Simple. Binding ref to the DP_1 (Query), Cost Center Characteristic Data Provider Selection Default, Planning Function ZDistrib1.
When the query is executed and a node representing a group in the hierarchy is selected the query is executed and is input ready for the selected group. This is a subset of the hierarchy.
When the above planning fucntions are executed the following results display.
1. The planning function is executed however it is not restricted to the selection based on the hierarhcy variable node selected by the user. The planning function is executed for the entrire hierarchy. It is not restricted by the cost center hierarchy node variable value.
2. The planning function is executed however it is not restricted to the selection based on the hierarhcy variable node selected by the user. The planning function is executed for the entrire hierarchy. It is not restricted by the cost center hierarchy node variable value.
3. The variable popup displays and a hierarchy node is selected. The planning function is executed however it is not restricted to the selection based on the hierarhcy variable node selected by the user. The planning function is executed for the entrire hierarchy. It is not restricted by the cost center hierarchy node variable value, that was entered when prompted.
4. The planning function is executed however it is not restricted to the cost center selection based on the query DP1. The planning function is not restricted by the cost center selections.
HOWEVER,
If I goto to the filter web item and edit the cost center filter by selecting and adding all available cost centers to the filter. (This list of cost centers is restricted to the cost centers subordinate to the hierarhcy node selected in the variable)
When the above the planning functions are executed the function is now restricted to the cost centers added to the filter as explained above.
If anyone has had a similar issue with Planning Functions executing for data outside of the Dataprovider Selections I would be interested to know how you managed to get the planning function to retrict to the DP Selections that include hierarchy node variables.
If anyone from SAP can comment before I raise this as an OSS issue it would be much appreciated.
Thanks in advance.
IanHi
Just wondering if this is the correct forum to post BI IP questions?
Any comments if this the right forum.
Thanks
Ian -
How to obtain the list of procedures and functions
hi,
how can I obtain the list of all the stored procedure & functions in the database?SELECT * FROM DBA_OBJECTS WHERE OBJECT_TYPE IN ('FUNCTION','PROCEDURE')
Cheers -
Select all functionality in a check box
Hi all
I am using forms 6i
I have a tabular block with a check box
i want to have the functionality wherein the user can select all the records of the form by a single click or any other
way
basically if the user wants to select all the records he does not have to click all the records individually same for deselect
Please let me know if we can do this
thanksHai,
create a button to select all, and write this code in the WHEN-BUTTON-PRESSED trigger.
DECLARE
Num_Total_Records NUMBER;
Num_Loop_I NUMBER;
BEGIN
GO_BLOCK('<block_name>');
LAST_RECORD;
Num_Total_Records := TO_NUMBER(NAME_IN('SYSTEM.CURSOR_RECORD'));
FIRST_RECORD;
FOR Num_Loop_I IN 1..Num_Total_Records LOOP
:<block_name>.<check_name> := 1;
NEXT_RECORD;
END LOOP;
END;
Regards,
Manu.
If this answer is helpful or correct, please mark it. Thanks. -
An error occured in a function of the formula - DATE_DIFF
Hi,
I have loaded the Data from PSA to ODS. I need to load data from ODS to InfoCube to MultiProvider. I am trying to use DATE_DIFF for two fields with datatype mm/dd/yyyy in formula.
I am getting the error as "An error occured in a function of the formula".
Please let me know how I can solve this problem.Hello Deva
Follow any of the below option.
1. Create formula in transformation for the difference ZNDAY
Select Date Functions > DATE_DIFF(ZSTODAT,ZSFRMDAT).
2. You can do it by routine also by using standard FM to calculate the diff bewn two days.
DAYS_BETWEEN_TWO_DATES
FIMA_DAYS_BETWEEN_TWO_DATES
FIMA_DAYS_BETWEEN_TWO_DATES_2
FIMA_LEAP_DAYS_BETWEEN_2_DATES
LEAP_DAYS_BETWEEN_TWO_DATES
HR_99S_INTERVAL_BETWEEN_DATES
ISB_DAYS_BETWEEN_TWO_DATES
3. If you don't do here you can do it in reporting formula variable.
4. In reporting you can do it with customer exit.
Assign points if your problem is solved.
Thanks
Tripple k
Message was edited by:
Tripple k
Maybe you are looking for
-
How to check which fields of a table are changed
Hi I have a FM in which i pass VBAK and VBAP. I store records of table in internal tables and update the values during execution and at the end of this i have to cpmare VBAK and VBAP with internal tables to chcek which field value is changed in both
-
Disable language on logon screen
Hello, is it possible to disable a language on the PeopleSoft PIA logon screen? I know I can edit the signin.html to not provide the option to change this language, but that would be incomplete since the language gets recognized automatically. For ex
-
ACE 4710 A3(5) Logging new connections
We have recently transitioned one of our Ecommerce products to a new data center, at which we now use a one-armed load balancing approach rather then the routed load balancing approach we used previously. This is casuing us some issues as we generall
-
the code i am using is a modification of the code/problem found in "Cocoa with Objective-C", chapter 3. i have tried to use the objective-c 2.0 garbage collector methodology, using @property, @synthesize, etc. when i run the code as listed below i ge
-
Change default coding (Unicode) to other languages (T. Chinese-Big5)
Is there any way to change the default coding in Mac? I have difficulty to open the MS Word doc. which is coded by Big5 instead of Unicode. Pls advise. Thx.