Hi all
I need the select the 2 months previous data.
how can İ do that
select * from databasetable into table itab
where datum <= 2 months previous data
thanks all for help !!!
Hi all
I need the select the 2 months previous data.
how can İ do that
select * from databasetable into table itab
where datum <= 2 months previous data
thanks all for help !!!
BAPI_OUTB_DELIVERY_CREATE_STO - multiples STO items
Hi, I try to create a delivery from a STO using the BAPI "BAPI_OUTB_DELIVERY_CREATE_STO" and I have like 80 line-items in my STO, the delivery create only 71 items (the last 71 items of my STO). I need to know what we can do to fix this problem.
Others infomations: we are passing this data to the BAPI:
stock_trans_items-ref_doc
stock_trans_items-ref_item
stock_trans_items-dlv_qty
stock_trans_items-sales_unit
stock_trans_items-sales_unit_iso
Regards
Mario
When I checked sm50, one of the Background processes show ON HOLD for RFC because of that system currently not avaible (all processes are full).
How can i sure before rfc connection that system alive.
best regards
Hi folks,
I get the attached dump after upgrade to EHP7.
SYSTEM_CORE_DUMPED
Process terminated by signal 11
Any idea?
Kind regards,
Udo
Hello,
I'm trying to activate the Enhancement Screen in Condition tab to add some customer-specific fields, but the screen still hidden.
I'm folowing the instructions in SAP Note 1756452 - Customer-specific fields on condition tab but I didn't get the screen. Is there something else I have to do?
Can someone help me?
Regards,
Sandra Rocha
.
Hello,
I've got a report where we can choose a variant in the selection screen.
SELECTION-SCREEN BEGIN OF BLOCK SEL2 WITH FRAME TITLE TEXT-002.
PARAMETERS p_layout TYPE slis_vari.
SELECTION-SCREEN END OF BLOCK SEL2.
I've got it setup so that when the user runs the report, the field p_layout is filled with his default variant or if he has none it's empty.
My problem is when the field is empty the result ALV is always shown with the default variant.
For example:
User has 2 variants - SAV1 and SAV2 (default).
User enters selection screen and p_layout is filled with SAV2.
Scenario 1:
User presses F8 and the ALV is shown with the variant SAV2
Scenario 2:
User changes p_layout to SAV1 and presses F8. ALV is shown with SAV1 variant
Scenario 3:
User emptys p_layout (p_layout IS INITIAL), presses F8 and ALV is shown with SAV2 variant - the default one
What can I do so that when p_layout IS INITIAL the ALV shows all the columns?
This is how I define the layout:
gr_layout = gr_alv->get_layout( ).
MOVE sy-repid TO gs_layout_key-report.
gr_layout->set_key( gs_layout_key ).
gr_layout->set_save_restriction( if_salv_c_layout=>restrict_none ).
gr_layout->set_default( 'X' ).
gr_layout->set_initial_layout( p_layout ).
F4 help for p_layout:
ls_layout_key-report = sy-repid.
ls_layout_info = cl_salv_layout_service=>f4_layouts( ls_layout_key ).
p_layout = ls_layout_info-layout.
Initialization of p_layout:
gs_variant-report = sy-repid.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
I_SAVE = 'A'
CHANGING
CS_VARIANT = gs_variant
EXCEPTIONS
WRONG_INPUT = 1
NOT_FOUND = 2
PROGRAM_ERROR = 3
OTHERS = 4.
IF sy-subrc = 2 OR sy-subrc = 0.
p_layout = gs_variant-variant.
ELSE.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
the sy-subrc = 2 is there to prevent error if user has no layouts => p_layout stays empty
Thank you in advance!
I am developing a function module in ECC that will be used to post inbound IDOC for customer creation DEBMAS07
The logic is as follows -
The function receives an IDOC structure
It then invokes function module 'IDOC_INPUT_DEBITOR'
IDOC_INPUT_DEBITOR takes care of creating a new customer in table KNA1. But I was expecting IDOC_INPUT_DEBITOR to also handle the IDOC posting. This way I can go to WE02 and see a new IDOC record. What am I missing? Is there some more code I need to write after the function module call?
Thank you.
* IDOC structures for using ALE
data lc_no_display type bdwfap_par-inputmethd value ' '.
data lt_idoc_control type standard table of edidc.
data ls_idoc_control type edidc.
data lt_idoc_data type standard table of edidd.
data lt_idoc_data_knvi type standard table of edidd.
data lt_idoc_status type standard table of bdidocstat.
data ls_idoc_status type bdidocstat.
data lt_return_variables type standard table of bdwfretvar.
data lt_serialization_info type standard table of bdi_ser.
data lv_workflow_result type bdwf_param-result.
data pi_idoctyp type edi_iapi00-idoctyp.
data pt_segments type standard table of edi_iapi11.
data lw_segments type edi_iapi11.
data ls_idoc_data type edidd.
data ls_e1kna1m type zdebmas07_e1kna1m.
data e1kna1m type e1kna1m.
**********************************************************************
*** CONTROL DATA
**********************************************************************
ls_idoc_control-mandt = input-idoc-edi_dc40-mandt.
ls_idoc_control-status = input-idoc-edi_dc40-status.
ls_idoc_control-doctyp = input-idoc-edi_dc40-idoctyp.
ls_idoc_control-direct = input-idoc-edi_dc40-outmod.
ls_idoc_control-rcvprt = input-idoc-edi_dc40-rcvprt.
ls_idoc_control-rcvprn = input-idoc-edi_dc40-rcvprn.
ls_idoc_control-stdmes = input-idoc-edi_dc40-stdmes.
ls_idoc_control-outmod = input-idoc-edi_dc40-outmod.
ls_idoc_control-sndpor = input-idoc-edi_dc40-sndpor.
ls_idoc_control-sndprt = input-idoc-edi_dc40-sndprt.
ls_idoc_control-sndprn = input-idoc-edi_dc40-sndprn.
ls_idoc_control-mestyp = input-idoc-edi_dc40-mestyp.
ls_idoc_control-idoctp = input-idoc-edi_dc40-idoctyp.
append ls_idoc_control to lt_idoc_control.
**********************************************************************
*** READ SEGMENTS
**********************************************************************
pi_idoctyp = ls_idoc_control-idoctp.
call function 'IDOCTYPE_READ_COMPLETE'
exporting
pi_idoctyp = pi_idoctyp
tables
pt_segments = pt_segments
exceptions
object_unknown = 1
segment_unknown = 2
relation_not_found = 3
others = 4.
loop at pt_segments into lw_segments.
case lw_segments-segmenttyp.
when 'E1KNA1M'.
ls_idoc_data-segnam = 'E1KNA1M'.
ls_idoc_data-mandt = sy-mandt.
ls_idoc_data-segnum = lw_segments-nr.
ls_idoc_data-psgnum = lw_segments-parpno.
ls_e1kna1m = input-idoc-e1kna1m.
move-corresponding ls_e1kna1m to e1kna1m.
move e1kna1m to ls_idoc_data-sdata.
append ls_idoc_data to lt_idoc_data.
exit.
endcase.
endloop.
**********************************************************************
*** IDOC INPUT CALL FUNCTION
**********************************************************************
data: response type zsi_create_customer_is_res_tab.
data: response_lwa type zsi_create_customer_is_respons.
data: lwa_error_message type string.
call function 'IDOC_INPUT_DEBITOR'
exporting
input_method = lc_no_display
mass_processing = space
importing
workflow_result = lv_workflow_result
tables
idoc_contrl = lt_idoc_control
idoc_data = lt_idoc_data
idoc_status = lt_idoc_status
return_variables = lt_return_variables
serialization_info = lt_serialization_info
exceptions
wrong_function_called = 1
others = 2.
Dear Team,
I want to write some code(Check & validation) at the time of listbox selection(any value) without Hitting enter.As when i am trying to put '/H' It's not taking me inside the program (but after listbox selection & enter hit i could go into program).
Plz suggest me how can i go inside the program once i select value from list box without hitting enter.
Thanks in advance.
Santosh
I amd working on a web dynpro applicaiton for PA action request and process action in the background. We have manu concurrent employees. When the main assignemnt is terminated, I need to switch the main pernr to another pernr. I sue HR_INFOTYPE_OPERATION to update other infotypes with no problem, but it does not work with info type 0712. I step through in debugger, see HR_INFOTYPE_OPERATION run though without erro, but IT0712 does not show the update.
What other tool can I used to update infotype 0712 and 0171?
Anna
Hello,
I have a requirement where I have to update EKPV-KUNNR with a new value.
I tried to use BADI ME_PROCESS_PO_CUST Method PROCESS_ITEM.
I am using get_shipping_data to get the shipping details and then modifying EKPV-KUNNR and calling set_shipping_data but this is not getting updated.
I found out that in set_shipping_data, there is an old record and new record, and in new record only few fields are changed and because of that old_record is always equal to new_record and that is why my changed customer number is not updated.
Code in set_shipping_data
l_data_old = me->if_purchase_order_item_mm~get_shipping_data( ).
* initial transfer from BAPI interface (old_data always empty)
IF l_parent->for_bapi EQ mmpur_no.
CHECK NOT l_data_old IS INITIAL.
ENDIF.
l_data_new = l_data_old.
MOVE: im_ekpv-vstel TO l_data_new-vstel,
im_ekpv-lprio TO l_data_new-lprio,
im_ekpv-vsbed TO l_data_new-vsbed,
im_ekpv-route TO l_data_new-route,
im_ekpv-ablad TO l_data_new-ablad,
im_ekpv-spe_auth_number TO l_data_new-spe_auth_number,
im_ekpv-spe_src_dlv_no TO l_data_new-spe_src_dlv_no,
im_ekpv-spe_src_exidv TO l_data_new-spe_src_exidv,
im_ekpv-spe_inspout_guid TO l_data_new-spe_inspout_guid,
im_ekpv-spe_follow_up TO l_data_new-spe_follow_up.
IF l_data_new NE l_data_old.
READ TABLE po_ekpv_hash_table INTO wa WITH TABLE KEY item = me.
IF sy-subrc IS INITIAL.
wa-data = l_data_new.
MODIFY TABLE po_ekpv_hash_table FROM wa.
ELSE.
wa-item = me.
wa-data = l_data_new.
INSERT wa INTO TABLE po_ekpv_hash_table.
ENDIF.
ekpv_changed = mmpur_yes.
The issue is that none of the aforementioned fields are being changed so code never goes to l_data_new NE l_data_old where EKPO table is updated.
Can anyone help??
Hi
I want to disable Item (POSNR) field in T-Code VA01 and VA02 .
My Actual Scenario is : Item Numbers should always be 10 , 20 , 30 . Now if user enters 100 i item it will start the Sequence like 100 , 110 ,120 .
To restrict user from entering any other item number than system generated one. I tried using User Exits but the field only get disabled after there is done any entry is table control.
Hi friend,
i have issue regarding mandatory self life field (SELD/BBD and Date of manufactor)in migo for Batch Tab for particular Material start with '1' Series and material type.
i want to make mandatory above field during GR from migo..any one let me know exit or badi for that to full fill this goal..
Regard's,
shaikh Khalid.
Hello experts,
I developed a smartform for the transaction me23n. It's working with my user id .when creating purchase order with some other user id it's going to dump.
i am attaching the dump . please help me.
Category ABAP Programming Error
Runtime Errors POSTING_ILLEGAL_STATEMENT
ABAP Program /1BCDWB/SAPLSF00000031
Application Component Not assigned
Date and Time 28.03.2014 17:20:09
Category ABAP Programming Error
Runtime Errors POSTING_ILLEGAL_STATEMENT
ABAP Program /1BCDWB/SAPLSF00000031
Application Component Not assigned
Date and Time 28.03.2014 17:20:09
Short Text |
Statement "MESSAGE_A" is not allowed in this form. |
What happened? |
Error in the ABAP Application Program |
The current ABAP program "/1BCDWB/SAPLSF00000031" had to be terminated because |
it has |
come across a statement that unfortunately cannot be executed. |
What can you do? |
Note down which actions and inputs caused the error. |
To process the problem further, contact you SAP system |
administrator. |
Using Transaction ST22 for ABAP Dump Analysis, you can look |
at and manage termination messages, and you can also |
keep them for a long time. |
Error analysis |
There is probably an error in the program |
"/1BCDWB/SAPLSF00000031". |
This program is triggered in the update process. The following ABAP |
statements are illegal here: |
- CALL SCREEN |
- CALL DIALOG |
- CALL TRANSACTION |
- SET SCREEN |
- LEAVE TO LIST-PROCESSING |
- SUBMIT |
- LEAVE SCREEN |
- LEAVE LIST-PROCESSING |
- LEAVE PROGRAM |
- LEAVE TO TRANSACTION |
- MESSAGE I/W/E (if not handeld using EXCEPTIONS ERROR_MESSAGE) |
- MESSAGE A |
How to correct the error |
Probably the only way to eliminate the error is to correct the program. |
If the error occurs in a non-modfied SAP program, you might be able to |
find a solution in the SAP Notes system. If you have access to the SAP |
Notes system, check there first using the following keywords: |
"POSTING_ILLEGAL_STATEMENT" |
"/1BCDWB/SAPLSF00000031" bzw. /1BCDWB/LSF00000031F01 |
"%RAISE" |
If you cannot solve the problem yourself, please send the following |
information to SAP: |
1. This description of the problem (short dump) |
To do this, choose System -> List -> Save -> Local File (unconverted) |
on the screen you are in now. |
2. A suitable system log |
To do this, call the system log in transaction SM21. Restrict the time |
interval to ten minutes before the short dump and five minutes after |
it. In the display, choose System -> List -> Save -> Local File |
(unconverted). |
3. If these are programs of your own, or modified SAP programs: Source |
code of these programs |
To do this, choose More Utilities -> Upload/Download -> Download in |
the Editor. |
4. Details regarding the conditions under which the error occurred or |
which actions and input caused the error. |
Hi Friends,
we are using sap ecc6.0 release 700.we have implemented document viewer functionality to one of our application.we have Adobe in our system.some times documets(pdfs) are shown properly in document viewer.but some times documents are not open in document viewer.in this case if restart the work station PC ,document viewer working properly.so we have to know any ways to correct the bug without restart the workstation PC.
please suggest any ways to correct it.
Hello Gurus,
I am stuck with a very small problem. I have a internal table which might have some INITIAL LINES in it. I am using this internal table in the ALV Method. CALL METHOD o_alv->set_table_for_first_display.
But, during the final display of the ALV display, all the blank lines are getting deleted automatically, which I don't want. I have modified and rechecked some fields like, l_sort-up = 'X' or Space. but, nothing solved my problem.
Can you please help me with identifying the exact parameter, which will enable thr ALV to show blank lines in the final display.
Thanks for the help in advance.
Dear Experts,
I am using this subject FM to call the text editor in my program. My problem is that when I changed the contents of the long text editor the changes weren't updated. Any ideas?
Even the longtext screen does not bring, already available contents from the standard SAP object where this longtext was saved.
Can someone help
Thank you
Rakhee Prabhu
Hi ,
I am using write statement in the user command for ALV as below .I am find the ALV after the write statement .How can I avoid the ALV after the write statement .Also when I click back from the write statement screen ,it is going back to selection screen instead of first ALV .I have tried using LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0 before and after the write statement but this issue is still existing .How to fix this .
FORM user_command USING ucomm TYPE sy-ucomm selfield TYPE slis_selfield.
CASE ucomm.
*
WHEN 'ONLI'.
WRITE : 'Test' .
Hi all,
I have a working "sap query" (sq01).
This query prints the list of our material catalog (module MM).
My problem is to write an external program that displays the same output.
To this purpose I installed "sapnrfc".
All works correctly: I can connect to SAP, read a table (for example MARAV) and output the content.
In SAPGui (sq01), I selected "InfoSet Query" and then "Display field information".
I see (for example) that the "Material Number" is stored in the table MARAV (field MATNR).
The problem is that in my "sap query" there are a couple of fields that I do not know where they come from.
Selecting "Display field information" for these fileds I only see:
TXT_ITA (Additional field)
TXT_TET (Additional filed)
Where is this information stored ?
Perhaps there is a view ... or a better method.
Thanks for any help.
Miche
Hi Everybody.
I try to delete multiple Hu's in a loop. No Matter what i do, it alwasys stops at the second HU.
The reason ist, it can't find the Second HU although it finds it after a restart.
If I go into 'HU_DELETE_HU', i can see that gt_xvekp is initial.
After some searching on Google i found that i need to use "HU_GET_HUS" to refresh gt_xvekp.
Unfortunately there is still the same error.
What should i do now?
Thanks,
Robin
CALL FUNCTION 'HU_GET_HUS'
EXPORTING
if_lock_hus = 'X'
if_no_loop = space
if_more_hus = 'X' "C_CHARX
it_hus = lt_hu
IMPORTING
et_header = lt_hu_header
et_items = lt_hu_items
EXCEPTIONS
hus_locked = 1
no_hu_found = 2
fatal_error = 3
OTHERS = 4.
FIELD-SYMBOLS: <ls_hu_item> LIKE LINE OF lt_hu_items,
<ls_imseg> TYPE imseg.
LOOP AT lt_hu_items ASSIGNING <ls_hu_item> WHERE unvel IS INITIAL AND charg IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = <ls_hu_item>-venum
IMPORTING
output = lv_venum.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
CALL FUNCTION 'HU_GET_HUS'.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
CALL FUNCTION 'HU_DELETE_HU'
EXPORTING
if_venum = lv_venum.
IF sy-subrc = 0.
DELETE TABLE lt_hu_items FROM <ls_hu_item>.
READ TABLE lt_hu_items INTO ls_hu_item WITH KEY unvel = lv_venum.
IF sy-subrc = 0.
DELETE TABLE lt_hu_items FROM ls_hu_item.
ENDIF.
ENDIF.
COMMIT WORK AND WAIT.
WAIT UP TO 1 SECONDS.
CALL FUNCTION 'HU_POST'
EXPORTING
if_commit = 'X'.
ENDLOOP.
Hi All,
Our requirement is to bring up pop up screen after the user enters input on the initial screen of VA21 where some instructions will be displayed and there would be two buttons accept or reject.In case he rejects it will go to some specified URL and in case of agree it would go to next screen of VA21.
We are having issues in bringing the control back to VA21 second screen if user presses accept button.We have used submit z report (which calls the pop up screen) in the user exit.
Can anyone please suggest how to code the above logic.
Regards,
Ruhi