Use exit -vl10b
hello,
the scenario is :
we are doing STO via :
me21n
vl10b (no PGI)
vt01n
vl02n-PGI----->proforma billing.
vi01
ml81n
miro.
we wanted to reduce the three transactions for the end user ie vt01n vl02n and vi01 into a Bdc Program which can be called in the user exit after vl10b.
my primery requirement is i need an user exit to be triggered when i press save button in vl10b, but as per my knowledge i did not find any exit, but there is an exit EXIT_SAPLV50P_001 which triggers when i press PGI Button.IN the user exit i am running a bdc (3 t-code - vt01n , creating a PGI , and then running the transaction vi01).
after the exit is run the control comes out the exit and the regular pgi carries on. But at this point the pgi has already been created, so it will throw an error .
how can i resolve the issue.
hello,
the scenario is :
we are doing STO via :
me21n
vl10b (no PGI)
vt01n
vl02n-PGI----->proforma billing.
vi01
ml81n
miro.
we wanted to reduce the three transactions for the end user ie vt01n vl02n and vi01 into a Bdc Program which can be called in the user exit after vl10b.
my primery requirement is i need an user exit to be triggered when i press save button in vl10b, but as per my knowledge i did not find any exit, but there is an exit EXIT_SAPLV50P_001 which triggers when i press PGI Button.IN the user exit i am running a bdc (3 t-code - vt01n , creating a PGI , and then running the transaction vi01).
after the exit is run the control comes out the exit and the regular pgi carries on. But at this point the pgi has already been created, so it will throw an error .
how can i resolve the issue.thanks in advance
shankar
thanks
Similar Messages
-
Work Center update during work order save (SAP PM) using exit IWO10009
Hi All,
I am updating the work center in the operation record of a work order using exit IWO1009. In the debug, the internal table for operation is updated successfully. But once the processing is done and I see the order though t-code IW33, I couldn't see the updated workcenter. And surprisingly, plant field which I am updating with work center, is getting updated in the operation and I can see this in IW33.
Pls help.
Thanks,
BhaskarHere is the code:
REFRESH : lt_afvgd.
Getting Operation details
CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET'
EXPORTING
aufnr_imp = caufvd_imp-aufnr
TABLES
afvgd_get = lt_afvgd.
IF caufvd_imp-AUART = lc_auart1 or caufvd_imp-AUART = lc_auart2 .
Determination of Work Centre for Operation Relevent To PTE Eng.
CLEAR : ls_afvgd.
READ TABLE lt_afvgd INTO ls_afvgd WITH KEY usr00 = 'PTE'.
IF sy-subrc eq 0.
ls_afvgd-arbpl = caufvd_imp-VAPLZ.
ls_afvgd-WERKS = caufvd_imp-VAWRK.
MODIFY lt_afvgd FROM ls_afvgd TRANSPORTING arbpl WERKS WHERE usr00 = 'PTE'.
ENDIF.
endif.
**-- Updating operations buffer
CALL FUNCTION 'CO_BO_UPDATE_OPR_OF_ORDER'
TABLES
afvgd_upd = lt_afvgd. -
Hi
I seek another to use-exit to update the zone kna1-bahns.
gv_n = 0.
IF i_kna1-bahns IS NOT INITIAL .
ELSE.
gv_bahns = i_kna1-name1+0(4).
DO gv_n TIMES.
gv_n = gv_n + 1.
SELECT SINGLE kunnr FROM kna1 INTO kna1-kunnr
WHERE kunnr <> i_kna1-kunnr
AND bahns = gv_bahns.
IF sy-subrc <> 0.
i_kna1-bahns = gv_bahns.
ELSE.
CLEAR gv_bahns.
CONCATENATE i_kna1-name1+0(3) gv_n into gv_bahns.
SELECT SINGLE kunnr FROM kna1 INTO kna1-kunnr
WHERE kunnr <> i_kna1-kunnr
AND bahns = gv_bahns.
ENDIF.
ENDDO.
ENDIF.
ENDIF.
THANKSApps crashing
See:
iOS: Troubleshooting applications purchased from the App Store
Restore from backup. See:
iOS: How to back up
Restore to factory settings/new iPod -
System asking me to fill MANDATORY fields, even I used EXIT-COMMAND for F3
HI Experts,
issue- there is mandatory field in the screen, so, am using the folllowing code, system asking me to fillup the mandatory field.
then, i used exit-command, but, still its asking me to fill the mandatory fiels???????????
code is,
process after input.
***Exit command
module cancel at exit-command.
module cancel.
module user_command_9001.
module cancel input.
case: ok_code.
when wa_con_back.
clear ok_code.
set screen 0.
leave screen.
when wa_con_exit.
clear ok_code.
set screen 0.
leave screen.
endcase.
endmodule. " cancel INPUT
thanqI am not sure but try making a specific module for your exit handling, for instance:
module do_exit at exit-command.
module cancel
module user_command_9001.
Hope it helps you,
Bert -
I want to update new tasks by using exit QQMA0014 the notification qm01
Hi ,
i want update some mandatory task from custom table while creating or changing the QM notifiction through tcode QM01 or QM02 by using user exit QQMA0014. am trying to update but its giving one popup message "update was terminated received from author '
Could you pls provide me solution to update the tasks by using exit. Thanks in advance.Please specify your requirement clearly. Are you updating a custom table of any fields in the standard table ?
-
Could you pls help on use exits before saving the contract .
i want to check the limitatin before saving the contract in sap banking.
for contract creation tcode is FN1V or FNV1.
Could you pls tell me the use exits if knows anybody
advance thanks.Hi Diva,
use this exit.
EXIT_SAPLFVDA_002
if this is not suitable for u r req then go to SMOD press f4 then click on Information systems give FVVD in package then press enter.there u will get no of enhancement. search for u r rlant.
Thanks -
Unable to create outbound delivery using transaction VL10B
Hello,
When I am trying to create an outbound delivery from refrencing a Purchase Order using transaction VL10B,
the item is not getting selected (In the VL10B , I entered the PO number and executed but in the next screen no items are displayed ).
Please let me know the reasons for this.
Please Note : I tried to change the PO delivery date ,but still the above problem persist.
Thanks & Regards,
Sumanta DebHello Sumanta
Please check at item level in PO under 'delivery schedule' tab, what is the material staging date. If this date is in the future, VL10B will not show any line item in due list. VL10B will only show due list from today and backdated deliveries.
Let me know if u have any more issue related to this
Amol -
COPA Data Source: possible to enhance using exit?
Hi BI experts,
I got a question about if it is possible to enhance COPA data source by using user exit (just like the way to enahance other data sources in the business content).
The background:
I have to include several new fields in COPA data source. Since COPA data source is generated (not a data source from business content like LIS data sources).
My questions:
1) Is it the recommended way to enhance the existing COPA data source using exit?
2) or it would be better to delete the existing one and create a new one with the two additional fields?
3) any potential issue to be expected?
Your feedback and help is highly appreciated.
Regards,
SallyHi
1) Is it the recommended way to enhance the existing COPA data source using exit?
Yes, we can enhance COPA DS via User Exit, Provided the fields should be from other different tables which are not from Segment Tables.
2) or it would be better to delete the existing one and create a new one with the two additional fields?
If the fields are from Segment Tables, it is always better to delete the existing one and Recreate the same
3) any potential issue to be expected?
Appending/Enhancing fields are always bit difficult and my lead into errors in future, based on the critical functionality we use.. But I recommend DELETE THE DS AND RECREATE WITH COPA always.Hope it helps -
How to Deliever the PO using T_Code VL10B ?
Sap Specialist,
How to Deliever the PO using T_Code VL10B ?
I have Created PO with type UD - Stock Transport Order.
I want to Shipping one Plant to another Plant.Hello Vasanth,
In the t-code VL10B ( Purchase orders fast delivery),
- Give your shiping point or delivering plant
- Select the second tab Purchase orders and put the PO number (Stock Transport Order) and execute
- It will list out the open PO (STO)
- Select the line item with your purchase order and click on "Background" (if you want to check the STO before creating you can double click on lineitem)
Hope this helps.
Regards
Arif Mansuri
Reward if answer is helpful. -
Exclude a hierarchy node by using exit variable (not in query designer)
Hi gurus!!
I have a hierarchy for the infoObject 0COSTELMNT. Depending on the user who executes the report, the node '0599ADJUSTMENTS' must be displayed or not.
I am trying to solve it by using an exit variable:
Varible Type: Hierarchy Node
Processing : Exit
On the exit, I have entered the following code:
IF ( sy-subrc = 0 ).
l_s_range-sign = 'E' .
l_s_range-opt = 'EQ' .
l_s_range-low = 'AJUSTES'.
APPEND l_s_range TO e_t_range.
ENDIF.
But unfortunately does no work!!
Any ideas?
Thanks in advance
Regards.
Carmen RodríguezHi,
Check the below link gives good knowledge on variables:
http://help.sap.com/saphelp_nw04s/helpdata/en/cf/579b3c494d8e15e10000000a114084/content.htm
Reg
Pra -
How to get SO data on PR creation using exit EXIT_SAPLMEQR_001 ?
Dears,
I have a requirement which involves activation of PR creation from SO.
I have activated the exit EXIT_SAPLMEQR_001to assign source suply according to non standard rules.
The thing is that I need to have the field VBAK-VTWEG (Distribution Channel) available to make my source supply assignments because vendors are classified based on field VTWEG.
The only fields I have available are these ones:
""Local Interface:
*" IMPORTING
*" VALUE(I_BQPIM) LIKE BQPIM STRUCTURE BQPIM
*" VALUE(I_BANFN) LIKE EBAN-BANFN OPTIONAL
*" VALUE(I_BNFPO) LIKE EBAN-BNFPO OPTIONAL
*" TABLES
*" T_SOURCES STRUCTURE SRC_DETERM
*" CHANGING
*" VALUE(C_BQPEX) LIKE BQPEX STRUCTURE BQPEX
I tried to Sales Order from table EBKN...
SELECT SINGLE VBELN INTO lv_VBELN from EBKN WHERE BANFN = EBAN-BANFN AND BNFPO = EBAN-BNFPO.
The thing is that at the time the exit runs, the PR BANFN doesnt exist yet, thus, I cant find any reference SO.
The only avaliable/interesting fields I have in this exit are:
I_BQPIM-MATNR 810101
I_BQPIM-WERKS 0050
I_BQPIM-MATKL 40206
I_BQPIM-OLDAT 00000000
I_BQPIM-NEDAT 20101122
I_BQPIM-BESKZ
I_BQPIM-SOBES
I_BQPIM-OLMNG 0.000
I_BQPIM-NEMNG 1.000
I_BQPIM-OLBSM 0.000
I_BQPIM-NEBSM 0.000
I_BQPIM-BSART ZTPS
I_BQPIM-BSTYP B
I_BQPIM-PSTYP 5
I_BQPIM-BSAKZ
I_BQPIM-KZVBR V
I_BQPIM-KNTTP Z
I_BQPIM-SEQU
I_BQPIM-VORGA B
I_BQPIM-KUNNR 0000000882
I_BANFN 4000000176
I_BNFPO 00050
And a list of source suppliers based on inforecords.
Also no Distribution channel available or sales order information.
Any ideas on how this could be achieved?
Thank you in advance for any constructive suggestions,
João CabritaHi John,
Thanks for your suggestion. To be honest I also thought about a similar solution and applied it, though I thought it was not so clean as the one I used after.
I have checked the ABAP stack and saw where we were "loosing" the VBAK-VTWEG.
On the exit code I have done something like this:
DATA: lv_vtweg TYPE vbak-vtweg,
l_stru_name(20) TYPE c VALUE '(SAPFV45E)VBAK'.
FIELD-SYMBOLS: -vtweg.
And problem was solved.
Cheers,
João Cabrita -
Regarding purchase order pricing conditions using exits or badi
Hi friends can anybody help me and let me know the solution.
Please explain how the change in the pricing condition amount value should update the cost in PO.
and which EXITS or BADI use for .
if anybody have the solution send me reply AS SOON AS
Thanks,
srinivasOK
But the problem is pricing conditions like transport cost. Because when I do a new purchase order the system use last transport cost and i don´t want it.
What I want (if possible) with infoupdate is:
- Update ( PBXX & PB00)
- Don´t update (other conditions like transport).
Thanks.... -
Using exit/BADI to create settlement for the Transaction COR1
Hi Experts,
My Requirement is when we are creating Process Order in the Transaction COR1, Settlement Rule will be automatically created by using some User Exit or BADI to assign the cost centre, account assignment category, and settlement percentage for the setup to the Settlement Rule.
I have tried with the User Exit: EXIT_SAPLKOBS_001 Enhancement COOM0003 and also tried with EXIT_SAPLCOI1_027 enh. IWO10027.
The Problem is above mentioned User Exit are not triggering though I have activated project.
What is wrong with my exit or please let us know correct User Exit or BADI?
I appreciate every help.
Thank you.
NimaiTry with below Exits related to COR1 transaction.
Exit Name Description
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
PPCO0009 Enhancement in goods movements for prod. process order
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determination
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting status text lines
Regards,
Saurabh -
Hi there,
I am launching a WD app via the portal UWL. I'm using the action handler "SAPWebDynproABAPlauncher" and launching the app in a new window via the "launchinNewWindow" parameter.
What I'm trying to achieve is being able exit this WD app and launch a new WD app.
I've been advised to use an exit plug in the calling WD app but I'm trying to find a working example of how to code this as I obviously need to be able to construct the URL for the new WD app and somehow pass this URL as part of the exit plug?
I'm aware the exit plug needs to be defined as an interface outbound plug of the WD components' window but I'm stuck when it comes to how the firing of the exit plug and construction of the URL should be coded.
Any help would be greatly appreciated.
MichaelHi Michael,
I'm not sure I understand your last question. Do you want to immediately close and exit app1 whilst launching app2.
Are you using app1 as some sort of redirect application?
As you mention that you are using the UWL - I'm guessing you're running within a portal?
In which case you could also use the portal navigation API which I believe can be fired from anywhere.
The good thing about this is that you can easily make it relative - easier to migrate through various development environments. But I guess that also depends on whether the app2 is indeed anothe WD app, whether you want to access it through the portal, use different authentication etc.
eg:
data lo_api_component type ref to if_wd_component.
data lo_portal_manager type ref to if_wd_portal_integration.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_portal_manager = lo_api_component->get_portal_manager( ).
call method lo_portal_manager->navigate_absolute
exporting
navigation_target = 'http://www.google.com'
navigation_mode = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_EXTERNAL
* window_features =
* window_name =
* history_mode = IF_WD_PORTAL_INTEGRATION=>CO_NO_DUPLICATES
* target_title =
* context_url =
* post_parameters = ABAP_FALSE
* use_sap_launcher = ABAP_TRUE
* business_parameters =
* launcher_parameters =
hope it helps,
Cheers,
Chris -
Reading Charact. Selection in Planning Level using Exit Var FM
Hi Expert,
i have to do a data slice with an Exit Variable that looks at selected data in the planning level and check in a custom table if the corresponding charact in the level is flagged in order to fill the variable with this value and lock data.
Any idea of the code for reading, in an Exit Var FM, data from Charact selection in the planning level?
Any hints will be very appreciated and rewarded.
Tanks
FabioHi,
You could check the how to guide variables of type exit at:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/650ee690-0201-0010-4bb7-83c3e2a74039
If you implement the FM 'Z_VARIABLE_GET_DETAIL' you can read the value of the variables and use this in other variables.
Here is part of the code to use a sales organisation to filter the data from 0mat_sales..
Get Marketing mat ind using the ZMARKIND variable in the area
DATA:
M_subrc like sy-subrc,
Ms_return like bapiret2,
M_type like upc_var-vartype,
Mto_varsel_all type upc_yto_charsel,
Mto_varsel type upc_yto_charsel,
Mto_var type upc_yto_charsel,
Mt_chavl type /BI0/PMAT_SALES occurs 0,
Ms_chavl like line of lt_chavl,
Mto_chanm type upc_yto_cha.
read source value
call function 'Z_VARIABLE_GET_DETAIL'
EXPORTING
i_area = l_source_area
i_variable = 'ZMARKIND'
i_buffer = l_buffer_call
IMPORTING
e_subrc = M_subrc
es_return = Ms_return
e_type = M_type
eto_varsel_all = Mto_varsel_all
eto_varsel = Mto_varsel
eto_chanm = Mto_chanm.
data: Ms_varsel type upc_ys_charsel,
M_entries type i.
if l_use_restricted_values is initial.
lto_var = Mto_varsel_all.
else.
Mto_var = Mto_varsel.
endif.
read table Mto_var into Ms_varsel index 1.
if sy-subrc <> 0.
message i147(upc_fw) with M_source_var.
exit.
endif.
describe table Mto_var lines l_entries.
if l_entries <> 1.
message i534(upc) with M_source_var.
exit.
endif.
select all materials related to the Line in the source variable valid
for the sales org in the zsorgfix variable.
case Lso_varsel-chanm.
when 'ZZLINE'.
select * from /BI0/PMAT_SALES
into table lt_chavl
where /BIC/ZZLINE = ls_varsel-low
and SALESORG = Gs_varsel-low
and /BIC/ZMARKIND = ms_varsel-low
and OBJVERS = 'A'.
when 'ZZBRAND'.
select * from /BI0/PMAT_SALES
into table lt_chavl
where /BIC/ZZBRAND = ls_varsel-low
and SALESORG = Gs_varsel-low
and /BIC/ZMARKIND = ms_varsel-low
and OBJVERS = 'A'.
when 'ZZHOUSE'.
select * from /BI0/PMAT_SALES
into table lt_chavl
where /BIC/ZZHOUSE = ls_varsel-low
and SALESORG = Gs_varsel-low
and /BIC/ZMARKIND = ms_varsel-low
and OBJVERS = 'A'.
endcase.
ls_varsel-SIGN = 'I'.
ls_varsel-OPT = 'EQ'.
ls_varsel-seqno = '0000'.
ls_varsel-chanm = '0MAT_SALES'.
loop at lt_chavl into ls_chavl.
Maybe you are looking for
-
Aperture won't print a photo wirelessly. My other programs print fine wirelessly. Anybody know why? I'm using OS X 10.6.8, Aperture 3.2.4 on an iMac with an Epson Artisan printer. When I try to print in Aperture, the printer utility tells me the prin
-
Is there a way to recover deleted messages on my iPhone3g?
-
My iCal somehow got deleted, how do I get it back?
I'm not sure what I did but I accidentally deleted it and was wondering if anyone knew how I could redownload it or get it back..
-
What should be idea temp tablespace size ?
HI all My databases size in between 20 gb to 100gb. waht factor should i consider to fix the temp tablespace size ? What should be my ideal temp tablespace size for the both database ?
-
Fort Gillem Contamination | www.myajc.com www.myajc.com/news/news/toxic-chemicals-found...fort-gillem/nhGFB/ Sep 4, 2014 - Toxic vapor is accumulating in some homes near Fort Gillem, suggesting carcinogens dumped at the U.S.. ... Sunday, September 1