88 questions
0
votes
0
answers
49
views
How to hide x-axis values with function module STAT_GRAPH?
I need to hide all the values in x-axis because they are worthless for the customer and don't want to watch them anymore.
I am talking about this:
How you can see, in x-axis I squared the values I ...
0
votes
1
answer
525
views
abap MM01 get class for material
I am working on an enhancement in transaction MM01. I need to perform different actions depending on a class assigned to created material. Does anybody know where can I find an information about the ...
1
vote
2
answers
2k
views
User exit EXIT_SAPLV54B_002 is not called
In SAP ABAP function module SD_SCD_PRICING_PREPARE is called when creating a shipment cost doc by tcode VI01.
There is a user exit EXIT_SAPLV54B_002 which should be used to include additional fields ...
0
votes
2
answers
4k
views
The statement "function" is not allowed in the current environment
I try to create simple function module but I have this error which says
the statement "function" is not allowed in the current environment. However, the similar statement "function-...
0
votes
1
answer
709
views
FM for printing ZPL causes deadlock
I did create a ABAP report to print some ZPL which works fine. Now my goal is to transfer that logic into a FM to be able to call it wherever and however I want. Problem is that doing so causes my ...
0
votes
1
answer
3k
views
BAPI_GOODSMVT_CREATE in parallel mode causes "plant data of the material XXX is locked" error
Currently, We're developing mass GI posting by parallelism, to reduce work time dramatically, because we have to post GI item about 300k+ at one day.
Problem
I know there is a restraint about ...
1
vote
1
answer
2k
views
How to collect detailed stack trace for Function Module execution?
Is there a way / tool to collect detailed Stacktrace for SAP Function Module executions?
We are seeing intermittent performance issues in an application. It is calling a SAP FM (using PyRFC). This FM ...
4
votes
1
answer
2k
views
Function Module for Calculation Schema in MM
I am looking for a function module that does the calculation schema for arbitrary material.
When opening ME23N and looking for the position details you have the tab Conditions where the table showing ...
2
votes
1
answer
548
views
How to get the due date 14 days before shipment date?
have the requirement to set the payment term 14 days before shipment date. so my baseline date will be the shipment date. How to get the due date for 'baseline date - 14 days' because all the resource ...
3
votes
1
answer
1k
views
FAGL_ACCOUNT_ITEMS_GL_API doesn't return any data by I_POSTING_DATES range
In SE37, I am trying to execute FAGL_ACCOUNT_ITEMS_GL_API function module but in import parameters area I_POSTING_DATE is not working and output brings all records to BUDAT column although I insert 01....
1
vote
1
answer
2k
views
BAPI_SALESORDER_CHANGE throws type exception
I'm having trouble using the FM BAPI_SALESORDER_CHANGE.
As soon as I execute my report, an exception is thrown by the FM. Following is the dump of the exception.
An exception occurred that is ...
1
vote
1
answer
2k
views
BAPI/FM to search prod orders confirmations by workcenter and date?
I'm trying to figure out which BAPI/FM I could use to search amounts confirmed based on search criteria of date (+time if possible) and workcenter confirmed where was confirmed...
I would be using ...
0
votes
0
answers
344
views
Is there a way to logon on to a new SAPsystem out of ABAP coding?
To work and code within a SAP System you first have to log yourself into a certain system with a user.
Is there a way that I can trigger this logon process to a new SAP System within ABAP?
For example:...
2
votes
2
answers
16k
views
Read data from XLSX provided as XSTRING
An Excel file (.xlsx) is uploaded on the frontend which is UI5 Fiori.
The file contents come to SAP ABAP backend via ODATA in XSTRING format.
I need to store that XSTRING into an internal table and ...
0
votes
3
answers
2k
views
How to get parameters of RFC module in node-rfc?
I want to introspect input parameters (and maybe output as well) of a RFC given it's name.
I found methods RfcGetParameterCount and RfcGetParameterDescByIndex which have been used by the node-rfc ...
1
vote
0
answers
394
views
Create note in MB51 with GOS objects programmatically
Im working on creating a material document movement (MB51 report) and then creating a note to it. So far Im finished with creating the document and returning the document number.
And now I need to ...
-1
votes
2
answers
8k
views
How to read structured import parameter in function module?
I'm new to SAP ABAP and want to achieve the following: I've my custom Z function module (SE37) which should have a table as import parameter. This table I want to read/loop in the code, parse the ...
1
vote
1
answer
9k
views
Convert rawstring (Byte String) into readable String
Requirement:
To convert SRT_MMASTER table's MESSAGE_DATA field data into readable string format or in internal table.
I have tried different function modules to convert Byte String (Blob) data ...
3
votes
2
answers
2k
views
Return dynamically-typed table rows via RFC?
I need to return the rows of some tables via RFC, and the names of these tables are not known before the execution.
I have this statement which gets executed in a loop:
SELECT *
up to ...
0
votes
1
answer
3k
views
Calling a search help function module for a field on a screen
Is it possible to call the function MAT1_F4_HELP_EXIT in the PBO module of the screen to trigger search help for a material field on a custom screen (assigning the search help using se11 and search ...
1
vote
1
answer
11k
views
BAPI_SALESORDER_CHANGE does not make changes
I am call BAPI BAPI_SALESORDER_CHANGE to update sales order and need to changed the edatu at item level, the return of the BAPI is that the sales order is changed but no changes are made.
i am ...
2
votes
3
answers
3k
views
Do we need to clear an export parameter at FM start?
I found this code:
FUNCTION /FOO/BAR.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(IV_XYZ) TYPE STRING
*" EXPORTING
*...
0
votes
1
answer
453
views
SD_SCDS_CREATE cannot create with FKART
I need to create a document cost with shipment type Z003 (requested by client). Whenever I give the FM the FKART = Z003 does not work. If I remove the parameter it works but creates it with Z001 type.
...
3
votes
3
answers
12k
views
Concatenate fields of a dynamic structure
How do we concatenate fields of a dynamic work area? The idea is in the below code:
LOOP AT lt_final INTO DATA(ls_final).
CONCATENATE ls_final-field1
ls_final-field2
...
0
votes
1
answer
910
views
Filter CHANGED_AT from CRM_ORDER_READ
I have a requirement wherein I have to filter CHANGED_AT from CRM_ORDER_READ.
I used the dynamic query as follows:
lr_core = cl_crm_bol_core=>get_instance( ).
lr_core->load_component_set( '...