FM BAPI_SALESORDER_GETLIST obligatory field
hi gurus,
regarding about FM BAPI_SALESORDER_GETLIST, im developing a report base on MAT NUMBER for da sales. As client request the report should pull the data from sales quantity by MAT NUM , sales Org and Date in da selection screen. but the problem with FM BAPI_SALESORDER_GETLIST is, customer Number is a obligatory field. End user just want to see the sales quantityfor each matrial.
so, how can i skip or avoid using Customer Number field for 'BAPI_SALESORDER_GETLIS' OR is there any FM where i can get sales quantity data by using MAT NUM, SALES ORG and DATE..
oh yeah... i did a coding for this in normal way, but its taking very - very long time to display from table vbap. if user select mat Num.. it will display very fast. but, if the user execute using only sales org it will take very very very long time.
thanks in advance.
Edited by: MAYAT on Dec 14, 2009 10:53 AM
hi... the probelm is, its taking very long time to fetch date from da table.... the probelm is end user... end user will only select sales org and execute.
this concept will take very long to just to display the output. in vbap table, there are more thna 5 million of data. thats why im looking for FM, to make the report more efficient.
thanks...
regs mayandi
Similar Messages
-
Leaving dynpro with obligatory fields.
Hi everyone.
What I'm trying to find is some way to leave (using a cancel button) a dynpro that has obligatory fields without having to complete them.
What I've done is including the following code in the PBO user-command module:
case sy-ucomm.
when '&CANC'.
leave to screen 0.
when '&OK'.
endcase.
What happens is that every time that I hit cancel, an error message that says that I must complete every obligatory field pops up and I have to do that in order to leave the dynpro. ¿Any idea about how to fix this?
Thanks a lot,
Fernando.Hi,
IN the GUI STATUS for the function code &CANC .have the function type as 'E' (Exit command).
Then in the PAI..have a new module ..
MODULE EXIT_COMMAND AT EXIT-COMMAND.
In that module have your code for CANC function code..
Thanks,
Naren -
Purchase Requisition header text as obligatory field
I need you help!!!
Problem description: requestor forget to put some text in the header text of the purchase requisition, that cause that manager not release the requisition due missing information.
So I have a request to do the header text of the purchase requisition (ME51N) as obligatory field, is that possible via configuration??Marco,
No, this is not possible via configuration. You will need to look into some <i>user exit</i> to make this feasible.
Hope this helps.
H Narayan -
Obligatory fields in a Maintenance View
Hi All,
I have a Z table. I have created a Maintenance View for this table. My requirement is to have a few fields as mandatory in this view so that when the user enters data, these fields should appear with the Obligatory symbol in the grid.
Regards,
MadhurHi Madhur,
Whenever u craete a table maintainence view one or two screens are generated depending upon the option u have selected.
goto SE11 ->utilities ->table maintainence .
there find ur screen no ( 1 by default)
click on that u will enter into screen painter.
There find ur field and specify its attribute as required. Dont forget to activate the screen onece done.
Thanks & Regards,
Ankur -
Obligatory Fields in Moule Pool
Hi all,
My requirement is such that...
I have created 2 radiobuttons in the selection screen
When I select the 1st button, a particular field in the same screen should become obligatory and when I select the 2nd button another field should become obligatory.
Can anyone tell me how to achieve this?
Thanks,
AmritaHi,
You can try Loop At Screen Statement,
That is in the PBO of the selection screen
you can check the Screen Goup the one that is
assigned to both the radio buttons in if else statements,
If the first radio button is selected you can give the field names
required for the first radion button selection output by giving
screen-name = Field name and make
field-required = 'X' .
Same for the else statement for second radio button.
Hope it helps
Regards
Mansi -
Obligatory fields in plans (IP01)
hello all
I want to make main avtivity type field in transaction IP01 obligatory but, in IMG I found only the possibility to make fields visible or invisible.
other than a transaction variant is there another way? maybe a path in IMG I have not seen?
thanksHelllo ,
why you want this to be mandatory
You are maintening it in work centre then it will copy automatically
Regards
chandrashekhar -
Skip validation of 'OBLIGATORY fields populated or not'? so that user GO_BACK
Hello
I placed a handful fields on selection screen, wherein there are push buttons are there and input free text fields.
Based on these button cliks and controlling the other fields visibility. So, user thinks that there are 2 screens. I also placed a BACK button, bcz user when cliks BACK button then the user thinks he/she is navigating from 2nd creen to 1st screen.
I made these free text input feilds as OBLIGATORY addition. So, when user cliks BACK button am getting error that 'Pls. enter required fields'
Pls. let me know how can I skip this error upon clikcing of BACK button, I mean, in this case we don't need to chk mandatory.
Thank youIts not possible if you use the obligatory functionality. It defeats the purpose of obligatory. Instead don't use obligatory but check if the field is initial by your own and then display custom error message.
you can skip this check if the sy-ucomm is for the BACK button.
Thanks,
Vikram.M -
Selection screen output obligatory field
Hi all,
I have two radio buttons, if i selected one radio button one selection screen will come for entries another will be invisible.
in that selection screen i have all are mandatory fields. so it is not allowing to another radio button with out entering the values
Chek my code.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text001.
PARAMETERS : p_aut RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND ac.
PARAMETERS : p_man RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text002.
PARAMETERS : p_zbukr TYPE reguh-zbukr MODIF ID aut.
SELECT-OPTIONS : s_laufi FOR reguh-laufi MODIF ID aut OBLIGATORY,
s_laufd FOR reguh-laufd MODIF ID aut OBLIGATORY,
s_hbkid FOR reguh-hbkid MODIF ID aut OBLIGATORY,
s_hktid FOR reguh-hktid MODIF ID aut OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text003.
PARAMETERS : p_bukrs TYPE bsak-bukrs MODIF ID man DEFAULT 'LTGI'.
SELECT-OPTIONS : s_augbl FOR bsak-augbl MODIF ID man OBLIGATORY,
s_augdt FOR bsak-augdt MODIF ID man OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b3.
Will it move from one radion button to another even those are obligatory.
Regards,
Sri
Edited by: Thomas Zloch on Sep 14, 2010 2:34 PM - please use code tags!Hi,
True. There are some variables to keep track of.
So, I have two radio buttons. P_UPL and P_DNL. If P_DNL is selected and gv_mode has already been set to "download status", then I do the check. AT SELECTION-SCREEN OUTPUT happens after AT SELECTION-SCREEN so my gv_mode variable won't be set on the first AT SELECTION-SCREEN when the radio button is selected.
* SELECTION SCREEN EVENTS
AT SELECTION-SCREEN OUTPUT.
DATA: lv_type(3).
IF p_upl = 'X'.
gv_mode = c_screen_upload.
ELSE.
gv_mode = c_screen_download.
ENDIF.
LOOP AT SCREEN.
IF NOT screen-group1 IS INITIAL.
IF screen-group1 = gv_mode.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
AT SELECTION-SCREEN.
IF p_dnl = 'X' and gv_mode = c_screen_download.
IF p_aland is INITIAL.
MESSAGE text-m03 type 'E'.
ENDIF.
IF so_azone[] is INITIAL.
MESSAGE text-m04 TYPE 'E'.
ENDIF.
endif. -
Obligatory fields "iban" and "swift" in vendor master data creation
Hi,
I need a way to get obligatory iban and swift in vendor master data.
I need to check if iban and swift have been filled during creation or modification of a vendor (transactions XK01, MK01, FK01,XK02, MK02, FK02 ).
In user-exit ZXF05U01(function EXIT_SAPMF02K_001) I can't check iban and swift fields.
Do you know another way to solve my issue?
Thanks in advance. Stefano.Hi Stefano,
swift codes are data from financial institute (and not vendor data). So try exit (CMOD) SAPLBANK (but I dont no if it will work!).
As i remember (at time iban where introduced), there was an exit to check consistency (mean "rules") to propose/create iban from account no of vendor. But i cant remember the name of this exit, so you may search in sap notes for this exit.
Best regards,
Christian -
Make obligatory field on view with an attribute for view field equals to 'S
I developed a maintenance view with an attribute for view field equals to 'S'.
I want to make obligatory the field that appears in the window called: Determine work area: entry.
Is there some way to do it?
Regards,Hi Kenneth,
Goto the view definition (SE11), and set the attribute of the required field (column 'P'), and make it as Subset 'S'. This ensures that you cannot goto the display of view data without first entering the value for this field.
The values displayed are also filtered for the selected value of this subset field.
Cheers
Rekha -
Hi all,
is it possible to make a cell input obligatory in a grid without additional (I mean event handling) abap coding?
Moreover the small question mark (or tick in new design) indicating the obligatory input would be a 'nice to have' feature. If you have any idea please help.
regards
:busHi,
I have the same question - has anyone found the solution?
I did review most of the CL_GUI_ALV_GRID methods and LVC_S_LAYO and LVC_T_FCAT options.
Thank you!
MayM -
Obligatory fields in table maintainence
Hi,
I have a table with a maintainence, when i fill with data the line i fill one of the key fields,but there are 5 key fields, when i fill one and give enter he blocks the other key fields, there is anyway to not block any field until all key fields are filled with data?Hi,
GOTO SE51 and enter the program and screen number that is created for the table maintenance..
For the key fields in the attributes make it as mandatory..
That way it will make sure the user will enter values in all the key fields..
THanks,
Naren -
ABAP Query : Obligatory fields on selection screen!
Hi Experts,
I would like to know the differrent ways through which we can define mandatory fields on selection screen.Options availabel in Infosets (SQ02) as well as Query(SQ01).
Selection Screen:
Document Date in Document: (Mandatory Select-Option)
Plant : (Mandatory Select-Option)
Thanks,
YogeshHi, Everyone .
We can do that .
At selection-screen output (code section 13), set "1" to the field REQUIED by using MODIFY SCREEN code .
(You can get Dynpro number by F1 key or T-cd SE51 )
Masao .
Edited by: MASAO NONAKA on Oct 20, 2008 9:11 AM -
Find obligatory fields in the transaction MM01
Hi,
My requirement is to create a Z table which will store all mandatory fields from the transaction MM01.
Is there a way to know which fields are mandatory without being in the transaction MM01 or OMS9? In which system table is this information saved?
Regards,
RobertoHi,
For writing a substitution exit code you will need the help of your ABAPer.
Use T Code GGB1 to create a substitution. In the application Area select Financial Accounting --> Line item.
Create a substitution for your company code. Under Substitution Create Step. When you click on step it will give you a list of fields in BSEG table. Select field name XREF1 or XREF2 or XREF3 any one. In the next screen select "Exit". In the Prerequisites give conditions as BKPF-BUKRS = 1000 (your company code).
In the Substitution select your exit code against your XREF1 or XREF2 or XREF3 field.
While writing the exit code you can give the logic as select BSEG-KUNNR and pass to table KNA1. Then populate BSEG-XREF1 with KNA1-NAME1
Save this substitution and activate it in T Code "OBBH"
While writing Substitution exit copy the standard program "RGGBS000" and create your Z program. Write your new code in the Z program. This step should be done before you create a substitution. Use T Code GCX2 and maintain your Z program against Application Area "GBLS".
Also see to it that the Reference Key1 / 2 / 3 field is made optional in all the Posting Keys and Field Status Groups.
Please let me know whether this helps.
Regards,
Swapnil -
At selection screen output problem when a field is obligatory
Hi All,
I have two radiobuttons on the selection screen and when I select first radiobutton one screen should display and the other should not be displayed and vice-versa. It is working fine if I do not have a mandatory field.I am pasting my code here.Can anyone please help me how to handle this situation when we have some mandatory fields on one of these screens.
TABLES : mara,marc.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : p_meth1 RADIOBUTTON GROUP g1 USER-COMMAND g1,
p_meth2 RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK matnr WITH FRAME TITLE text-002.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS : so_matnr FOR marc-matnr MODIF ID m1 obligatory.
SELECTION-SCREEN SKIP 1.
SELECT-OPTIONS : so_werks FOR marc-werks MODIF ID m1 .
SELECTION-SCREEN END OF BLOCK matnr.
SELECTION-SCREEN BEGIN OF BLOCK file WITH FRAME TITLE text-003.
SELECTION-SCREEN SKIP 1.
PARAMETERS: p_fpath TYPE ibipparms-path MODIF ID m2 LOWER CASE.
SELECTION-SCREEN END OF BLOCK file.
SELECTION-SCREEN BEGIN OF BLOCK date WITH FRAME TITLE text-004.
SELECTION-SCREEN SKIP 1.
PARAMETERS : p_date TYPE datuv.
SELECTION-SCREEN END OF BLOCK date.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE screen-group1.
WHEN 'M1'.
IF p_meth1 = 'X'.
screen-active = 1.
ENDIF.
IF p_meth2 = 'X'.
screen-active = 0.
ENDIF.
WHEN 'M2'.
IF p_meth2 = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
IF p_meth1 = 'X'.
screen-active = 0.
ENDIF.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
Thanks in advance
SandeepObligatory fields with your requirement will not work, reason : The GUI checks obligatory fields before passing the control back to the program (i.e Before triggering the PAI )
If you check for empty fields and give appropriate error message in the PAI, the program will not allow you to switch to the other radio button until you fill something in the fields because the moment you select a radiobutton, it will validate the field and issue the error message.
So it is like a catch 22 situation.
All you can really do is to check see which radio button is clicked and then do your processing. Also make sure to assign a user command to the radiobutton and query it in the AT SELECTION SCREEN and based on the radiobutton selected, decide which fields should be validated.
" Additon...
INITIALIZATION " Default values
p_meth1 = 'X'.
AT SELECTION-SCREEN. " General PAI
if p_meth1 EQ 'X'.
"validate fields for meth1.
elseif p_meth2 EQ 'X'.
" validate fields for meth2.
endif.
regards,
Advait
Maybe you are looking for
-
Unable to print barcode in xml publisher
Hi All, I tried to print the barcode using xml publisher but i am not able to do so. Will you please guide me on this ! I follow the below steps, please correct me if i am wrong. Step1: I downloaded the IDAutomationSC128L.ttf and paste in c:\Windows\
-
Remote system details keying in Data Manager
Hello Gurus, I need to create records theough portal. Is there any default way to key in the remote system & remorte key details in to data manager automatically? Thanks in advnace for your help. Regards, Ravi
-
I bought this latest mini as soon as it came out earlier this year. It's upgraded to the 2.26GHz processor and has 4GB SDRAM installed. The HDD is a 7200RPM 320GB and is formatted as GUID. I'm connected to an Apple 23" cinema display. I'm running Leo
-
How to deactivate the flex builder licence from one machine and use it on other machine
Hi, I have a "Flex builder 3" licence running on my machine. I have to deactivate that and use it on another machine. How should I do that? As there is no otpion in flex builder. Any help appreciated. Thanks, Tushar
-
Moving Groups of Tracking Points after Motion Tracking
I ran the motion tracking on some footage, and watched the tracking closely to keep the square on the person that I am tracking. However, once I applied the tracking data to the null layer, and attached that to the adjustment layer (which has gausia