Using Create button of transaction CK91N through a program
Hi,
We have created a program with selection screen .This selection screen contains two input fields 'MATERIAL' for multiple entries ie. Material field ha sbeen created by Select-options and 'Plant' for single entry ie. Plant by Parameters .In this program a function module 'CKML_MGV_SURFACE_DISPLAY' is being called .This function module leads the user to initial screen of transaction 'CK91n' with both the input fields(Material and plant) of transaction CK91n . Now 'CREATE BUTTON' of this screen of CK91n has to be used by program .So how to use this create button by program?
hiii
yes you can call transaction like that..take tcode in that parameter then you can use it in your program with statement like
call transaction (variable)..in background process.
regards
twinkal
Similar Messages
-
Create a Job for a transaction dynamically through ABAP program.
Hello Experts,
Can a job be created for a transaction dynamically, say for example i have a parameter on selection screen which will take the name of the transaction and then i have to create a job to run that transcation.
Plz provide sample code.
Regards,
Mansi.hiii
yes you can call transaction like that..take tcode in that parameter then you can use it in your program with statement like
call transaction (variable)..in background process.
regards
twinkal -
Problem in creating Internal order (Transaction KO01) through LSMW
When I am processing the session of internal order creation (KO01) in background I am getting the below error.
Session FI_INT_ORD_C is being processed by user XXXXXX in mode N on server XXXXX.
It is running properly when I execute the session in foreground. Could you please help me on this?Hello,
Check in SM37 if any background is scheduled, if you dont have authorization for the t-code ask yor basis guy to look into it.
Try to see wht that background job is doing, and if possible, if you can hault this background job and then try your job
Regards,
Abhishek -
Need help in creating Buttons in ADF10g
Hi,
My questions are:
1. Is it possible to modify the width of row in ADF10g. Because the width of rows in my output are high. So I want to reduce it.
2. I need help in creating a new 'createbutton' to create a newlist for the table . for this I have used create button but didnot succed.
3. I also need help in creating 'save button' to save modified data into the table.
4. I need help in creating a select-one-choice and select-one-list for columns of table.
Please help me.
regards,
sanjana
sanjanathe Easy Tabs could be useful for your requirement
http://usermanagedsolutions.com/SharePoint-User-Toolkit/Pages/Easy-Tabs-v5.aspx
/blog
twttr @esjord -
Creating buttons on title bar using alv
hi all good morning,
can any one help me in making a button on title bar of ALV report. Till now i have used only one function of ALV i,e REUSE_ALV_GRID_DISPLAY. it is showing proper out put but i want to make some action using my own button on the final ALV result displayed like save change etc.Hi,
How to add button to ALV toolbar using REUSE_ALV_LIST_DISPLAY?
In the program which calls ALV using REUSE_ALV_LIST_DISPLAY,
I have to add a new button.
I saw the demo program BCALV_GRID_08, which is written using ABAP-Controls.
In that example, the button is added using TOOLBAR event of cl_gui_alv_grid.
Could you help me to implement the same logic using REUSE_ALV_LIST_DISPLAY parameters.
you should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality such as sorting/subtotaling etc...
When you call 'REUSE_ALV_GRID_DISPLAY' make sure you pass it the new status name.
an example of one of mine:
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZSDBOLST_REPORT'
i_callback_pf_status_set = 'STANDARD' <----
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'I_BOLACT'
i_grid_title = 'BOL Action Report'(031)
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
i_save = 'A'
is_variant = v_variant
TABLES
t_outtab = i_bolact
EXCEPTIONS
program_error = 1
others = 2.
I just tried the same procedure ,but my entire application toolbar disappeared and a lock icon appears next to the application toolbar in my copied pf-status.
Could you advice what might have gone wrong ?
As identified with the FM's help you can do the following.
1). Using SE80 (I think) you can copy a GUI status from one program to another. It mentions which one in the FM's help.
2). Create a form named like so:
Code:
Form Set_pf_status
Notes: Called by FM REUSE_ALV_GRID_DISPLAY
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD'.
ENDFORM. "Set_pf_status
In the above case the GUI status copied was named ZSTANDARD and adjusted accordingly, adding and removing the desired buttons. A button was added called '%DELETE'.
3). Create the following report:
Code:
Form User_command
Notes: Called by FM REUSE_ALV_GRID_DISPLAY
Detects whether the icon/button for
'Return Tag Deletion' has been pressed. If it has then
detect whether any rows have been highlighted and then
set the delete flag.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA: li_count TYPE I.
IF r_ucomm EQ '%DELETE'.
LOOP AT %g00 WHERE mark EQ 'X'.
ADD 1 TO li_count.
ENDLOOP.
IF li_count GT 0.
gc_delete_flag = 'X'.
r_ucomm = '&F03'. "Back arraow
ELSE.
MESSAGE W000 WITH 'Please highlight the rows to be deleted!'.
ENDIF.
ENDIF.
ENDFORM. "User_command
As I've added an extra button to indicate which records should be deleted I need to identify a form to be called to process when this button is chosen.
Then when you call the ALV function you to specify the following extra details:
Code:
call function 'REUSE_ALV_GRID_DISPLAY'
exporting i_callback_program = gc_repid
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
i_grid_title = lc_grid_title
is_layout = lc_layout
it_fieldcat = gt_fieldcat
it_sort = sort
i_save = l_save
is_reprep_id = l_bbs_id
is_variant = l_variant
tables t_outtab = %g00
exceptions program_error = 1
others = 2.
The parameters in capitals are the extra ones that need to be added.
Regards,
Satish -
Creating "Payables Account Transaction" using custom code
Hi Gurus,
I need a help. I have a requirement that I have to create "Payables Account Transaction" using custom PL/SQL code. Kindly could you advise me as to which API or Package should i use to get this done. Currently I am in 11.5.10.2.
Pls help me on this.
Thanks,
GenooHi Genoo,
As mentioned I would reverse the standard journals coming from Payables, that way you can still see what the original journals were and drill back using them. So you don't do anything in the subledger.
Alternatively if you wanted to get more risky, when you run the Payables transfer to GL, you could choose not to submit journal import and then you could manipulate the AP Journal records while they are still in the GL_INTERFACE (as they also go through that table) prior to going to GL, then you could do whatever you want - and if you don't delete them (but update / copy them) they will still retain the drilldown links back to AP.
Regards,
Gareth -
when I open multiple tabs which do not fit the tab strip I have to move through tabs using scroll buttons. is there any way way I can stack the tabs on each other or suggest me a add-on which can help me achieve this
You can consider to access the tabs via the list all tabs button.
You see the "List All Tabs" button in current Firefox versions if there are that many tabs open that you get the Tab bar scroll buttons appearing.
* Permanent List-all-tabs Button: https://addons.mozilla.org/firefox/addon/permanent-listalltabs/
The Custom Tab Width extension adds CSS rules to adjust the tab width settings as set by the browser.tabs.tabMinWidth and browser.tabs.tabMaxWidth prefs on the <b>about:config</b> page.
* Custom Tab Width: https://addons.mozilla.org/firefox/addon/custom-tab-width/
You can achieve the same with code in userChrome.css.
The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.
*http://kb.mozillazine.org/Editing_configuration
<pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
#tabbrowser-tabs ~ #alltabs-button { visibility:visible!important; }
.tabbrowser-tab[fadein]:not([pinned]) { min-width: 100px !important; max-width: 250px !important; }
</nowiki></pre> -
Can't create table that grows using the button object
Im a beginner, and this seems like a simple issue. Appreciate your help in advance. When I try to do this, the button fails to add a row.
So, I printed out the Help section entitled, "create a table that grows using the button object" and started from scratch with a simple table as the only object on the form- and followed the instructions to the letter.
When I go to preview and click the button, a row is not added.
Can you suggest something?Try this:
Select body row of table from hierarchy palette that you want to repeat then on he object tab of the properties tab select binding tab. You need to click on "Repeat Row for Each Data Item"
I hope this helps
Murat
www.muratkuru.com.tr -
Execute PL/SQL using the defaul Create button.
I have created an application and everyting with working fine.
I have one page where I create a work order. This is saved by using the default create button.
What I want to do now is, when I save I want to execute some PL/SQL, so essentially kicking off another process.
Is this possible? Is so how.
cheers
JamesJames,
Since you want PL/SQL procedure to be fired after clicking the default create button, create a a conditional PL/SQL process. Please follow the below steps:
1. Create a page process (Click process create icon under page processing in edit page). Choose process category as 'PL/SQL'. Click 'Next'.
2. Enter the PL/SQL procedure that should be executed on clicking the button. (In your case, it is the sql insert statement). Click 'Next'
3. Enter the success and failure message if required. Click 'Next'
4. For'When Button Pressed' select list, please choose the Default 'Create' Button. Press 'Create Process'.
Hope this helps. -
As per title. Twice in a few hours. Happened each time when my BT router defaulted to plain public wi-fi and while I waited for airport to locate my router hub I just ticked my hub and boom this dark almost black see through screen slid down and instructed me to switch off using power button. It is a 3 year old desktop 21" and has been faultless until this. I get the default report an unexpected shutdown form and when I fire up it is fine as indeed it is now.
Any help or ideas how to deal with?That is a kernel panic.
What is a Kernel Panic?
http://support.apple.com/kb/TS3742
and http://support.apple.com/kb/TS1892?viewlocale=en_US
http://developer.apple.com/mac/library/technotes/tn2002/tn2063.html
More details here:
http://www.thexlab.com/faqs/kernelpanics.html
Useful articles on how to avoid and eliminate kernel panics here:
http://reviews.cnet.com/8301-13727_7-10344626-263.html?tag=mfiredir
http://www.macworld.com/article/2027201/how-to-troubleshoot-a-kernel-panic.html# tk.nl_mwhelp -
Error while accessing transaction codes through URL's in IFrame UI element
Hi Experts,
I have created Transaction iviews ck91N, ck11N, ck24 in SAP NW CE7.2. I am accessing these Transaction iviews through URL's in webdynpro java application. I am using IFrame UI element in a Roadmap UI for each transaction code.
when i access step1 i.e ck91N in a IFrame it is working fine then i click button for step2, it displays the following error.
Error while processing your request!
What has happened?
The call of URL http://yyyyyyyy:8001/sap/bc/gui/sap/its/webgui has been terminated due to an error.
Note
■The following error text was processed in system D10 : A:ITS_P:019 XSRF no sec_sesstoken
■The error occurred on application server eccdcs1s_D10_01 and in work process 0 .
■The termination type was: ABORT_MESSAGE_STATE
■The ABAP call hierarchy was:
Function: CKML_MGV_SURFACE_DISPLAY of program SAPLCKMLMVSURF
Function: CKML_MGV_SURFACE_DISPLAY of program SAPLCKMLMVSURF
START-OF-SELECTION of program CKMLMV_SURFACE
What can you do?
■In the case of termination type RABAX_STATE, you will find in system D10 in transaction ST22 more information on the cause of termination.
■In the case of termination type ABORT_MESSAGE_STATE, you will find on application server eccdcs1s_D10_01 in transaction SM21 more information on the cause of termination.
■In the case of termination thype ERROR_MESSAGE_STATE, you can search for more information in the trace file for the work process 0 in transaction ST11 on application server eccdcs1s_D10_01 . An analysis of trace files for other work processes may be necessary.
■If you do not yet have any user ID, contact your system administrator.
Error Code: ICF-IE-http -c: 730 -u: P00004943 -l: E -s: D10 -i: eccdcs1s_D10_01 -w: 0 -d: 20110426 -t: 135905 -v: ABORT_MESSAGE_STATE -e: A:ITS_P:019 XSRF no sec_sesstoken -X: -x:
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework Team
Then next step3 it is working fine. If i change Road Map steps Ck11N,ck91N,ck24 in this order then first one is working fine second one gives error and third one is working fine again. It is working alternatively. I don't understand why this is happening? when i use LinkToURL for these 3 URL's then they are working fine. LinkTOURL opens in new browser(window) and in Roadmap i am accessing 3 URL's in same browser(window).
Regards,
Pradeep Kumar
Edited by: pradeep_546 on Apr 26, 2011 2:17 PM
Edited by: pradeep_546 on May 2, 2011 11:43 AM
Edited by: pradeep_546 on May 3, 2011 8:02 PMI am facing the same issue when I use Windows 7 OS. Did you resolve this issue?
-
Can we create purchase order through report programming?
hi experts.....
can we create purchase order through report programming?If yes plz give me the thread details?Hi,
Use this code in a program by using a BAPI function module
Anothe rway is using classical/ALV report using call transaction from a report for changing the PO
loop at i_header.
header-ref_1 = i_header-legacy.
headerx-ref_1 = c_x.
header-doc_type = i_header-bsart.
headerx-doc_type = c_x.
header-comp_code = i_header-bukrs.
headerx-comp_code = c_x.
header-purch_org = i_header-ekorg.
headerx-purch_org = c_x.
header-pur_group = i_header-ekgrp.
headerx-pur_group = c_x.
header-vendor = i_header-lifnr.
headerx-vendor = c_x.
concatenate i_header-bedat+4(4)
i_header-bedat+0(2)
i_header-bedat+2(2)
into header-doc_date.
headerx-doc_date = c_x.
header-created_by = i_header-ernam.
headerx-created_by = c_x.
header-currency = i_header-waers.
headerx-currency = c_x.
concatenate i_header-kdatb+4(4)
i_header-kdatb+0(2)
i_header-kdatb+2(2)
into header-vper_start.
headerx-vper_start = c_x.
loop at i_items where legacy = i_header-legacy.
item-po_item = i_items-ebelp.
itemx-po_item = i_items-ebelp.
itemx-po_itemx = c_x.
if i_header-bsart = 'NB'.
item-material = i_items-ematn.
itemx-material = c_x.
schedule-quantity = i_items-menge * 1000.
schedulex-quantity = c_x.
else.
item-short_text = i_items-ematn.
itemx-short_text = c_x.
item-matl_group = '1000'.
itemx-matl_group = c_x.
schedule-quantity = '1'.
schedulex-quantity = c_x.
endif.
item-plant = i_items-werks.
itemx-plant = c_x.
schedule-po_item = i_items-ebelp.
schedule-sched_line = '1'.
schedulex-po_item = i_items-ebelp.
schedulex-sched_line = '1'.
schedulex-po_itemx = c_x.
schedulex-sched_linex = c_x.
concatenate i_items-eildt+0(2)
i_items-eildt+2(2)
i_items-eildt+4(4)
into schedule-delivery_date.
schedulex-delivery_date = c_x.
item-price_unit = i_items-peinh * 100.
itemx-price_unit = c_x.
item-tax_code = i_items-mwskz.
itemx-tax_code = c_x.
item-shipping = i_items-evers.
itemx-shipping = c_x.
account-po_item = i_items-ebelp.
accountx-po_item = i_items-ebelp.
accountx-po_itemx = c_x.
if i_header-bsart = 'FO'.
item-pckg_no = sy-tabix.
itemx-pckg_no = 'X'.
limits-pckg_no = sy-tabix.
limits-limit = i_items-overalllimit.
limits-exp_value = i_items-expectedoverall.
posrvaccessvalues-pckg_no = sy-tabix.
posrvaccessvalues-line_no = '0'.
posrvaccessvalues-serno_line = '00'.
posrvaccessvalues-percentage = '100.0'.
posrvaccessvalues-serial_no = '01'.
account-serial_no = '1'.
accountx-serial_no = '1'.
accountx-serial_nox = c_x.
account-quantity = '1'.
accountx-quantity = c_x.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = i_items-kostl
importing
output = account-costcenter.
accountx-costcenter = c_x.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = i_items-sakto
importing
output = account-gl_account.
accountx-gl_account = c_x.
item-acctasscat = i_items-knttp.
itemx-acctasscat = c_x.
item-item_cat = i_items-epstp.
itemx-item_cat = c_x.
endif.
append:item,itemx,schedule,schedulex,account,accountx,limits,posrvaccessvalues.
clear :item,itemx,schedule,schedulex,account,accountx,limits,posrvaccessvalues.
endloop.
call function 'BAPI_PO_CREATE1'
exporting
poheader = header
poheaderx = headerx
* POADDRVENDOR =
* TESTRUN =
* MEMORY_UNCOMPLETE =
* MEMORY_COMPLETE =
* POEXPIMPHEADER =
* POEXPIMPHEADERX =
* VERSIONS =
* NO_MESSAGING =
* NO_MESSAGE_REQ =
* NO_AUTHORITY =
* NO_PRICE_FROM_PO =
importing
exppurchaseorder = ponumber
* EXPHEADER =
* EXPPOEXPIMPHEADER =
tables
return = return
poitem = item
poitemx = itemx
* POADDRDELIVERY =
poschedule = schedule
poschedulex = schedulex
poaccount = account
* POACCOUNTPROFITSEGMENT =
poaccountx = accountx
* POCONDHEADER =
* POCONDHEADERX =
* POCOND =
* POCONDX =
polimits = limits
* POCONTRACTLIMITS =
* POSERVICES =
posrvaccessvalues = posrvaccessvalues.
* POSERVICESTEXT =
* EXTENSIONIN =
* EXTENSIONOUT =
* POEXPIMPITEM =
* POEXPIMPITEMX =
* POTEXTHEADER =
* POTEXTITEM =
* ALLVERSIONS =
* POPARTNER =
if ponumber eq space.
loop at return where type = 'E'.
clear buffer.
move-corresponding return to e_return.
concatenate i_header-legacy e_return into buffer.
transfer buffer to p2_file.
endloop.
move-corresponding i_header to i_eheader.
transfer i_eheader to p3_file.
loop at i_items where legacy = i_header-legacy.
move-corresponding i_items to i_eitems.
transfer i_eitems to p4_file.
endloop.
else.
commit work and wait.
endif.
clear:ponumber,header,headerx,item,itemx,account,accountx,limits,return,schedule,schedulex,posrvaccessvalues.
refresh:item,itemx,account,accountx,limits,return,schedule,schedulex,posrvaccessvalues.
endloop.
close dataset p2_file.
close dataset p3_file.
close dataset p4_file.
Regards
Krishna -
Hi All,
I have to create folow up transactions automatically when quotation gets approved. My question is when we create a follow up transaction automatically through Action Profile is it required to have copy control settings or not?
Thanks,
Raothe idea of using copy control would be to copy the data as needed from the base transaction so that your follow up transaction data is consistent. You need to check your requirement and find attributes that needs to be copied over before you determine this.
I hope this helps.
Thanks,
Aparna -
How to create varient for transaction code
hello expert,
I created one Mod. pool program and transaction code.
while run this tcode, Save button is disable and unable to create varient.
could you please guide me hw to enable this save button and create varient. please
with best regards
srinivasHi,
You can create variants for transaction using transaction variants. That is meant to simplify these kinda scenarios.
The tcode for transaction variants is SHD0. You can create variants as you wish. It is simple only. No coding required. Just take SHD0. Give your transaction name.
Then press create variant.
It will guide you.
Regards,
Renjith Michael. -
Posting using cross company code transaction must be blocked
Hello Guys,
I have a problem related to cross company code transaction.
In the OBA7 I have the document type KE that not allows posting using cross company code transactions. In the moment that I am creating a new document through the FB01, I have an error as "Consolidated companies US52 and ' ' are different
Message no. F5080. As a results, the document cannot be created by this way. This is the correct process.
But I have several documents that was used the doc type KE and the cross company code transaction was used. This is my issue. I don´t know why these documents were posted. The document come from another interface via IDOC and the IDOC not errored out.
Can anyone help on this?
Thanks
Rafael B.Hello, I´ve checked the log and no changes since 2008.
The document was created in 2010.
This is the message: "No logs found for the selected period"
More suggestions?
Regards.
Rafael
Maybe you are looking for
-
How do I get my old iPhone info onto my new one?
The new iPhone is already activated as a new iPhone and I didn't want that!
-
I can't use Time Machine with a USB drive plugged into an Airport Extreme.
I connected an external drive to the USB port of an Airport Extreme, intending to use it with Time Machine and one of the laptops in the Wi-Fi network (call it Laptop). The drive is visible from the Disks tab of each computer's Airport Utility but fr
-
How to send Spaces in a field from R/3 Proxy - XI - WebService
Since Space ' ' is a valid value in Several SAP Fields How One can send Spaces thru the System. In XML Structures If the Field has Spaces system will send Nulls ( for example tag like <Name /> ) But I want to send this field as <Name> </Name>. We can
-
ITunes wont start Error report.
A while back, I had to do a system restore. I reinstalled both quicktime and iTunes, but whenever I open iTunes, one of those "iTunes has encountered an error," messages appears. I have tried everything, including reinstalling several times. I have a
-
Top bar is gone. I cant find bookmarks, etc.