If condition failed
Re:ALV report
Hi,
I want to display more than 1000 characters in alv report in one field but it not accepting .So kindly help this issue.
Regards,
Dhandayuthabani.P
FBL3N report add additional field ekpo-labnr
HI experts,
I have to add the additonal field labnr ( ORDER ACKNOWLEDGE NUMBER ) in FBL3N Report output . could you please guide me that how to add the field in FBL3N Report.
Thanks & Regards,
Radhakrishna.Ette
To Show Production Order in MB52
Hi all,
I need to show the Production Order in MB52. It displays the batch number .
Any idea how to proceed.
with rgds
Ranjith Singh
Change G/L account number for PO in ME21n and Me22n
Hi All,
I need to change my GL account number in PO under account assingment tab. I have implemented the badi and under the method process_item i have written my code.
But his works only Change ( ME22n). This menthod does not gets trigered when PO is entered and on SAVE.
This is the code i have written in process_item of ZME_PROCESS_PO_CUST
DATA : ls_mepoaccounting TYPE mepoaccounting,
ls_po_accountings TYPE purchase_order_accounting,
lf_acnt TYPE REF TO if_purchase_order_account_mm,
lt_po_accountings TYPE purchase_order_accountings.
lt_po_accountings = im_item->get_accountings( ).
LOOP AT lt_po_accountings INTO ls_po_accountings.
lf_acnt ?= ls_po_accountings-accounting.
ls_mepoaccounting = lf_acnt->get_data( ).
ls_mepoaccounting-sakto = '51800'
CALL METHOD lf_acnt->set_data
EXPORTING
im_data = ls_mepoaccounting.
endloop.
how to update ztable through idoc?
I am a new one for IDOC
After invoice posted some fields should be sent to SRC.
at the time i want to update ztable with this fields.
How to find the user exit?
Please help me.
This
process starts with billing document creation. There is a schedule job for
billing due list. Once billing document is created, it results in idoc to be
created.
Cl_chart_engine is not refreshing with new value.
HI All ,
I am passing the value of internal table for the first time it is updating the correct graph , but after pressing the back button i am passing new value to the internal table and but graph is not refreshing .
LOOP AT gt_chart INTO gwa_chart.
lobj_element = xu_ixml_doc->create_simple_element(
name = 'C' parent = lobj_categories ).
lobj_element->if_ixml_node~set_value( gwa_chart-text ).
lobj_element = xu_ixml_doc->create_simple_element(
name = 'S' parent = lobj_series ).
lobj_element->if_ixml_node~set_value( gwa_chart-value ).
endloop.
Reagards
Kishore
Strange Problem in consuming a Web Service
Hi Experts,
I am facing a strange problem.
I have exposed a function module as a web service. It returns a list of material numbers.
When I execute it in SAP, it works fine. But when the external application (a ruby program) calls the web service it returns the table as blank.
I have used the structure “BAPIMATLST” and passing the data under the Tables tab of function module.
Regards,
Gopal
Problem with BAPI_ACC_DOCUMENT_POST in G/L account parameter
Hi All,
I am working on a BAPI "BAPI_ACC_DOCUMENT_POST" and for this I have created a program and wrote the following code:
DATA: WA_DOCUMENT_HEADER LIKE BAPIACHE09, LW_ACCOUNTGL LIKE BAPIACGL09 OCCURS 0 WITH HEADER LINE, LW_CURRENCYAMOUNT LIKE BAPIACCR09 OCCURS 0 WITH HEADER LINE, COMPANYCODEID LIKE BAPI0002_2-COMP_CODE, POSTING_DATE LIKE BAPI0002_4-POSTING_DATE, EFISCAL_YEAR LIKE BAPI0002_4-FISCAL_YEAR, EFISCAL_PERIOD LIKE BAPI0002_4-FISCAL_PERIOD, RETURN LIKE BAPIRETURN1, T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE. DATA: C_RFBU(04) VALUE 'RFBU', L_POSTING_SUCCESS_MESSAGE TYPE SYMSGNO. *POSTING_DATE = Sy-DATUM. COMPANYCODEID = C_BUKRS. WA_DOCUMENT_HEADER-BUS_ACT = C_RFBU. WA_DOCUMENT_HEADER-USERNAME = SY-UNAME. WA_DOCUMENT_HEADER-HEADER_TXT = 'test posting'. WA_DOCUMENT_HEADER-COMP_CODE = 'XX'. WA_DOCUMENT_HEADER-DOC_DATE = SY-DATUM. WA_DOCUMENT_HEADER-PSTNG_DATE = SY-DATUM. WA_DOCUMENT_HEADER-FISC_YEAR = '2010'. WA_DOCUMENT_HEADER-FIS_PERIOD = '1'. WA_DOCUMENT_HEADER-DOC_TYPE = 'JE'. LW_ACCOUNTGL-ITEMNO_ACC = '1'. LW_ACCOUNTGL-GL_ACCOUNT = '500000'. LW_ACCOUNTGL-FUNC_AREA = '5'. LW_ACCOUNTGL-FUND = 'ZZ00002'. LW_ACCOUNTGL-COSTCENTER = '991023456'. LW_ACCOUNTGL-BUS_AREA = 'U'. APPEND LW_ACCOUNTGL. LW_CURRENCYAMOUNT-ITEMNO_ACC = '1'. LW_CURRENCYAMOUNT-CURRENCY = 'USD'. LW_CURRENCYAMOUNT-AMT_DOCCUR = '100'. APPEND LW_CURRENCYAMOUNT. CLEAR LW_CURRENCYAMOUNT. CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST' EXPORTING DOCUMENTHEADER = WA_DOCUMENT_HEADER TABLES ACCOUNTGL = LW_ACCOUNTGL CURRENCYAMOUNT = LW_CURRENCYAMOUNT * EXTENSION1 = RETURN = T_RETURN.
Edited by: rajatg on Mar 31, 2010 10:01 PM
SSFC BASE64_DECODE - error attachment
Dear All,
I have issue with attachment error,while i am doing decode using FM SSFC BASE64_DECODE it is just converting into base64 format whether it is converted correct or wrong format.but problem is since attachment is having errors but FM SSFC BASE64_DECODE not able to returns errors.
because of that i am not able find out errors using FM.
can any body face this similar issue and how to find out attachment errors.
Thanks,
Prathap.
issue with data entered as a range with wild card char
Hello,
I have an internal table it_data with all vendor data in it. I also have a selection screen with fields like name, number and address. A user can enter anything on the selection screen and based on thatI need to show the results. I am having issues with when user enters a city as a range with wild card charachter. So let's say user entered A* to D*, so it should show all the cities between A* and D*, for this I have written the below code:
wa_ort01-sign = 'I'.
wa_ort01-option = 'BT'.
wa_ort01-low = s_ort01-low.
wa_ort01-high = s_ort01-high.
IF r_ort01 IS NOT INITIAL.
LOOP AT it_data ASSIGNING <fs_data>.
TRANSLATE <fs_data>-ort01 TO UPPER CASE.
READ TABLE r_ort01 INDEX sy-index into wa_ort01.
IF ( <fs_data>-ort01 CP wa_ort01-low ) or ( <fs_data>-ort01 CP wa_ort01-high ).
ELSE.
DELETE it_data.
ENDIF.
ENDLOOP.
ENDIF.
when I run my code I only see the vendors with cities starting with A* and D* and nothing in between like cities that start with B or C. I know the problem is that I am checking the pattern for the low and high value of the value entered by the user and hence ignoring anything between but I am npt sure how to fix it.
Any suggestion.
Thank you.
Unable to Create Web Dynpro ABAB Help Links
Hi All,
I am a KM for HCM (LSO). I tried creating a Help Link for Learning Solution project done on Wed Dynpro ABAP. When I tried to check if the the help link is created, an error message is displayed with details as “Error when creating the URL for LOIO and context (Application Log 88288)”, and the help link is not created. I ensured that all prerequisites are in place. Can someone tell me how to solve this issue?
Creation of Idoc using custom program
I have a requirement to create IDOC for a Mat Doc (MB1A) from Flat file from Application server, Please guide me how to go about.
Please give me steps and dummy program.
Will reward points.
With Regards,
Bala. M
Run OO-ALV in Background
I'm using CL_GUI_ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY and Splittter Containers to displays my ALV Output with TOP-OF-PAGE.
I'm unable to run this program in background. Can you please suggest what steps do I need to include to run this program in background.
My Code:
DATA: OREF_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
OREF_GRID TYPE REF TO CL_GUI_ALV_GRID,
OREF_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT,
OREF_SPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
OREF_PARENT_GRID TYPE REF TO CL_GUI_CONTAINER,
OREF_PARENT_HTML TYPE REF TO CL_GUI_CONTAINER.
DATA: ls_layout TYPE lvc_s_layo,
lt_fieldcatalog TYPE lvc_t_fcat.
* Create Container reference
IF oref_container IS NOT BOUND.
CREATE OBJECT oref_container
EXPORTING
container_name = 'CONTAINER'.
ENDIF.
* This is for top of page
"Create TOP-Document
IF oref_dyndoc_id IS NOT BOUND.
CREATE OBJECT oref_dyndoc_id
EXPORTING
style = 'ALV_GRID'.
ENDIF.
* Create Splitter for custom_container
IF oref_splitter IS NOT BOUND.
CREATE OBJECT oref_splitter
EXPORTING
parent = oref_container
rows = 2
columns = 1.
ENDIF.
* Split the custom_container to two containers and move the reference
* to receiving containers oref_parent_html and oref_parent_grid
"Allocating the space for grid and top of page
CALL METHOD oref_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = oref_parent_html.
CALL METHOD oref_splitter->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = oref_parent_grid.
* Set height for oref_parent_html
CALL METHOD oref_splitter->set_row_height
EXPORTING
id = 1
height = 25.
* Need to specify parent as splitter part which we alloted for grid
IF oref_grid IS NOT BOUND.
CREATE OBJECT oref_grid
EXPORTING
i_parent = oref_parent_grid.
ENDIF.
SET HANDLER top_of_page FOR oref_grid.
* setting focus for created grid control
CALL METHOD cl_gui_control=>set_focus
EXPORTING
control = oref_grid.
*-Build Layout
ls_layout = build_layout( ).
*-Build Fieldcatalog
lt_fieldcatalog = build_fieldcatalog( ).
*- Grid display
CALL METHOD oref_grid->set_table_for_first_display
EXPORTING
is_layout = ls_layout
CHANGING
it_fieldcatalog = lt_fieldcatalog
it_outtab = ct_table
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
ENDIF.
* Initializing document
CALL METHOD oref_dyndoc_id->initialize_document.
* Processing events
CALL METHOD oref_grid->list_processing_events
EXPORTING
i_event_name = 'TOP_OF_PAGE'
i_dyndoc_id = oref_dyndoc_id.
Thanks & Regards,
Adithya M.
add column to sales order item overview
Hello experts,
I need to add new columns to the order item overview. These custom fields are already added in the Additional tab A but user would like to see them appear on the line item overview. Please help me with this. Your input is greatly appreciated!
Best regards,
Le
How to arrange tab order in adobe forms...!!!
Hi Gurus,
I have a requirement in my current project in adobe forms where I have to give the reading orders using tab order. I followed the regular process like --
in the layout --> View --> Tab Order. But it didn't work. Could you please help me if I am missing anything.
Thanks in advance
Regards,
Balin.
Pressing enter in customer data tab not reflecting changes in PAI of the Module Pool in ME22N,ME23N
Hi I am back with another query.
Not I have added my custom fields on screen. But when the user does some action on the screen in those fields by pressing enter the value either gets removed or brings the old database value.
I need to check when the user presses enter on any of the custom fields in my customer data tab in ME21N,ME22N,ME23N.
When i tried to debug the standard there is no sy-ucomm value or ok_code meaning both the variables are blank.
so help me in catching when the user presses the enter button on screen
thanks in advance.
SAPSCRIPT-FORMPAGES starts with 0
Dear All,
I would like to see the total number of pages in a sapscript form by using variable SAPSCRIPT-FORMPAGES. But unfortunately this variable always starts with 0 in our system, and increases in every subsequent pages.
So when I do &PAGE& of &SAPSCRIPT-FORMPAGES&, it will show,
1 of 0
2 of 1
3 of 2
what could be the problem? please advise.
Thank you.
SAPSCRIPT - Secondary windows on Multiple pages
Hi,
I have a check form created. This check uses printer resident font for signature and MICR code for printing. We recently changed the PCL code due to new signatures installed on the printer. After the changes we are facing a weird issue. There are several secondary windows on first page in the form, when look at print preview it shows the check the way it should be without the signature and micr code but when print it, the windows are getting printed on 2 different pages. Please look at the below example
The PAY TO has been pushed to second page as shown below
Please let me know if anyone has faced similar issue and what needs to be done. Nothing was changed just the Hex code for PCL was only changed.
issue with BAPI_CONTRACT_CHANGE
Hi,
I've found thread with similar issue but without any resolution.So posting same kind of question again.I'm using BAPI_CONTRACT_CHANGE to change the Amount value of the Condition Supplements(From Item->Condition)of transaction ME32K.After executing the BAPI in SE37 I'm getting the below log in RETURN Table:
S BAPI 002 Instance 4600000000 of object type PurchasingContract has been changed.
S 06 023 Quantity Contract 4600000000 changed
W MEOUT 018 No message generated for output of purchasing document
I ME 664 Change NETPR could not be effected
And have found from ME33K that the Amount value of the Condition Supplements doesn't change.If anybody have gone through with similar issue,then please share the way you solve it.
Thanks in advance.
Regards,
Sarbajit Majumdar