Professional Documents
Culture Documents
Hide Button or Icon in The ABAP Report
Hide Button or Icon in The ABAP Report
Function : 'RS_SET_SELSCREEN_STATUS' .
FORM remove_dynamic_sel .
DATA: t_exclude TYPE STANDARD TABLE OF sypfkey.
APPEND 'DYNS' TO t_exclude.
Field Symbols
1. Based on normal programming view. Field symbols will act like pointer.
Sometimes we need to backup or export our SAPScript code, below is the step
3. Save the form with .txt extension, save the form in the desktop.
There are situation that you need to edit the Customer Master Data in SAP.
In this situation, we want to edit the payment term in of the customer under Company Data.
Basically before you are trying to use any BAPI that changing the data, run the BAPI that get the
detail from the system. As for this I'm using BAPI_CUSTOMER_GETDETAIL1.
In this BAPI you will need to enter the appropriate data to get the detail of the Customer.
And the field that you need to change (in this case we changing Payment Term). Fill up the first
PI_OPT_PERSONALDATA. In that table you just need to fill up the field that you want to
change (Payment Term) and also table below it PI_OPT_PERSONALDATAX.
Then fill up the SALESORG, DIVISION, DIVISION_CHANNEL and CUSTOMER No.. Then
run it.
If the return is 000, then you BAPI is execute with no error and now you can check using tcode
XD03.
Have Fun...!! :)
Below is code is best way to check whether the internal table having the value based on the key.
How to Add Customized Filed (KOB1) Actual Cost Line Items SAP Notes 325546
Assumption:
Steps:
IF i_rep_object = 'OR'.
SELECT SINGLE augdt augbl FROM bseg
INTO (cs_record-zzaugdt,cs_record-zzaugbl)
WHERE bukrs = cs_record-bukrs
AND belnr = cs_record-refbn
AND gjahr = cs_record-gjahr.
* buzei =
------------------------------------------------
Check table T001F and key in the program name. The Sapscript name will be at column Form
Report for doxygen documentation for ABAP sources
created by Markus Ulke on Dec 19, 2014 9:40 AM, last modified by Markus Ulke on Dec 19, 2014 12:52
PM
Version 1
inShare
Tweet
The attached report generates doxygen / plant uml documentation from an abap developoment
package.
1.) you need doxygen and plantUml installed in (c:\tools\plantuml, i.e. plantuml.jar needs to be
there)
2.) you need a directory c:\src (this directory will be used as a workdirectory, files in this
directory will be created, overwritten and deleted)
4.) you need the file dp.bat in c:\tools, (you find the file in the attached as a txt file, please
rename to dp.bat)
5.) you need the report zmu_dump_class activated in your BW system. (BW 7.40).
If you run the report, you need to provide the name of a development package and then the
documentation is generated.
You find the generated documentation in c:\src\html after a successfull run of zmu_dump_class.
and then running doxygen over these files. You can include plantUML in the abap documenation
and get uml diagrams included. Class diagrams
Please note that there is no guaranteed support its just a tool I wrote for my convenience and a
tool I think it's worth sharing.
Version 2
inShare
Tweet
Business Scenario: Automate freight header pricing condition type on sales order at the header
level. Currently SAP doesn't have the capability to automate header condition types. What we
mean by automate is, for example, item condition types, you can set those up with a condition
record and when certain criteria is met the record is automatically inserted into the sales order.
Transaction VK11/VK12/VK13 allows you to enter in the condition record type and then
create/change/display records for different condition types.
Solution: Put some custom code within the sales order user exit MV45AFZZ. There are several
places in which custom code can be placed in order to update the sales order header condition
type. One place the code can be put is the FORM userexit_save_document_prepare (which is the
form that gets executed one time right before the sales document gets saved. Another place and
probably the best place to put it is in the FORM userexit_pricing_prepare_tkomk. In our
solution we have placed the code in the FORM userexit_pricing_prepare_tkomk. Depending on
the way the environment is setup you will either have to create an enhancement or you can just
update the code directly. In our example we are updating the code directly. If you need to do an
enhancement or would like assistance using other FORMS feel free to ask for pointers.
1. Go to SE38 and enter in MV45AFZZ and click on change. (If it asks you for an object key
that means you need to create an enhancement).
3. In our instance we only wanted to update the header freight condition type on the creation of
the sales order. In order to do this you need to start your custom code with an "if" statement that
checks to make sure that t180-trtyp = 'H'. If it does, that means that it's in creation mode. The
snippet of code I'm pasting is in relation to pulling information from a custom table to determine
what the condition record should be and update the incoterms and payment terms along with the
condition record.
4. Also note in the code that there is a global variable that is set, gv_update_pricing. We had to
do this in order for the new pricing to update automatically since the terms were being updated.
This code needs to be placed in the FORM userexit_new_pricing_vbkd of user exit
MV45AFZB. I've put the code, in order to update the pricing automatically, down below also.
And again this is only done when creating the sales order.