Please can anyone help.
Thanks
Please can anyone help.
Thanks
Hi,
The following BADI may give you what you are looking for: PBEN0032
Regards,
Ryan Crosby
Hello:
Could try with:
MESSAGE ID 'XXX' TYPE 'S' NUMBER '000' WITH 'Valuation Type' LIKE 'E'.
Or Like Gaurav Gupta say, with cl_message_mm class.
Regards,
Jorge.
Hi,
I am trying to enhance tcode VL01N such that after post goods issue,those details plus serial should be downloaded into a file.I found BADI delivery_publish for enhancement.
In the BADI I used field symbols to get delivery number .Which is working OK.My problem comes when i pass the delivery number(vbeln) to select delivery details from LIKPs table ,it returns nothing on debugging.But when i confirm the value in the table LIKP in se16 ,i could see the data.This is the statement that is not working.
SELECT * FROM likp INTO TABLE gt_likp
WHERE vbeln EQ <lt_vbeln>."lv_char10."v_vbeln.
I decided to do another test,but debugging the method alone after hard coding the value as v_vbeln = ''0080000587'.Apparently it returned value OK.
So I dont understand why after post goods issue using tcode VL01N ,my select statement doesnt work.I find it strange because i have worked with select statements but I have never encountered this problem before.
Here is the snippet of the code used in the BADI.Please help me figure out what am I doing wrong
METHOD if_ex_delivery_publish~publish_after_save.
TYPE-POOLS :truxs.
********Internal Tables Declaration*************
DATA: it_final TYPE STANDARD TABLE OF zgood_issue_fields,
* it_iserls TYPE TABLE OF riserls,
it_iserls TYPE STANDARD TABLE OF rserob,
* it_komser TYPE TABLE OF komser,
it_sernos TYPE STANDARD TABLE OF riserls.
DATA: gt_lips TYPE STANDARD TABLE OF lips,
gt_likp TYPE STANDARD TABLE OF likp.
********Work Areas Declaration******************
DATA: gw_data TYPE ty_head,
wa_final TYPE zgood_issue_fields,
wa_xlips TYPE lips,
gw_likp TYPE likp,
* wa_iserls TYPE riserls,
wa_sernos TYPE riserls,
wa_iserls TYPE rserob.
* wa_komser TYPE komser.
********Variables Declaration******************
DATA: lw_name TYPE kna1-name1,
lv_lfimg TYPE p LENGTH 13,
lw_zzdelphi TYPE vbap-zzdelphi,
gwgen TYPE zgen_pswd,
uname(12) TYPE c,
pwd(30) TYPE c,
host(15) TYPE c,
slen TYPE i,
key TYPE i VALUE 26101957,
hdl TYPE i,
result TYPE STANDARD TABLE OF text,
fname(60) TYPE c,
itttab TYPE truxs_t_text_data,
it_head TYPE truxs_t_text_data,
keydata TYPE rserob.
DATA : v_vbeln TYPE vbeln,
lv_char10 TYPE char10.
FIELD-SYMBOLS : <lt_vbeln> TYPE vbeln.
DATA : gt_vbeln TYPE string VALUE '(SAPMV50A)xlikp-VBELN'.
ASSIGN (gt_vbeln) TO <lt_vbeln>.
MOVE <lt_vbeln> TO v_vbeln.
lv_char10 = v_vbeln.
* lv_char10 = '0080000587'.
clear v_vbeln.
*IF gt_likp is not initial.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lv_char10
IMPORTING
output = v_vbeln.
SELECT * FROM likp INTO TABLE gt_likp
WHERE vbeln EQ v_vbeln.
CHECK gt_likp[] IS NOT INITIAL.
SELECT * FROM lips INTO TABLE gt_lips
FOR ALL ENTRIES IN gt_likp
WHERE vbeln EQ gt_likp-vbeln. "v_vbeln.
* CHECK gt_lips[] IS NOT INITIAL.
*LOOP AT xlips INTO wa_xlips.
LOOP AT gt_lips INTO wa_xlips.
keydata-taser = 'SER01'." Serial Table
keydata-lief_nr = wa_xlips-vbeln. "delivery number
keydata-posnr = wa_xlips-posnr. "delivery item number(optional)
CALL FUNCTION 'GET_SERNOS_OF_DOCUMENT'
EXPORTING
key_data = keydata
TABLES
sernos = it_iserls[]
EXCEPTIONS
key_parameter_error = 1
no_supported_access = 2
no_data_found = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CLEAR: wa_xlips,keydata.
ENDLOOP.
ENDMETHOD.
Hi Ravi,
Please close the thread if your issue solved.
Regard's,
Shashi Kanth.
Hi Ravi
SAP Community Network Wiki - Application Server Infrastructure - Implementation of SAPV45A User-e...
see the above link ,their explained STEP by STEP how to proceed with adding fields in
additional data b in VA01.
Regards,
Bastin.G
Hi,
Pl check program RMCSS060
Regards,
Reema
FI Substitution does not work when accounting docs are triggered/created from other application areas like MM, SD...
Therefore implemented the BADI AC_DOCUMENT to get my problem solved.
Closing this thread.
Thank you.
Dear Sir,
Thanks for your support,
Now i am able to trigger SMS while Creating Sales Order.
Now I want Trigger SMS While Creating Excise Invoice (J1IIN)
Kindly Suggest me Which Enhancement to Follow!!.
Regards
Niran.OK
hi i want to put validation on qty, what is the code...
if (mseg-erfmg > 10(field_name i dont know)
message....(z...)
hey can u tell how you achieved your goal,please tell us as we are in same condition where you was....
help please..
hey have u given this error message for quality field or which field i have the same issue,
i have to put an error message when quality is more than it was previous..
please post code of it.
hi,
i want to add custom field in CJ20N below project Def field....
can u please let me know is it possible or not?
i dont want to add any custom field in separate tab
Thanks in Advance
Dear Experts,
After Saving Sales order, I am sending SMS. But an Express document is shown like this : "Cannot be sent: SO created.SO No-450" received from author "abap , although i received the SMS.
Regards
Niran.
Hi Girdhari,
Try using the message statement in the following manner.
MESSAGE 'Error' TYPE 'S' DISPLAY LIKE 'E'.
leave to screen sy-dynnr.
Regards.
use
Message i000(z...).
leave screen.
Dear All,
Good Afternoon!
I am trying to Connect DB6 with SQL Server 2008 through DBCO.
I have created all the Connection Setting in DBCO.
DB Connection :- MYCONNECTION
DBMC = MSS
User Name = manager
Password = 1234
Connection Information :- MSSQL_SERVER=192.168.1.34 MSSQL_DBNAME=SBODemo
REPORT ZINSERTDB.
DATA: OREF TYPE REF TO CX_ROOT,
P_CONEX TYPE DBCON_NAME VALUE 'MYCONNECTION', " Ask the basis for this
* P_CONEX TYPE DBCON_NAME VALUE 'YOUR_DB_CONNECTION_STRING', " Ask the basis for this
LV_SW TYPE C,
ERRORMESSAGE TYPE STRING.
DATA IT_MYDATA TYPE STANDARD TABLE OF MARA.
START-OF-SELECTION.
PERFORM CONNECT.
PERFORM INSERT_INTO_DB.
PERFORM DISCONNECT.
*&---------------------------------------------------------------------*
*& Form connect
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM CONNECT.
TRY.
EXEC SQL.
CONNECT TO :p_conex
ENDEXEC.
LV_SW = 'X'.
CATCH CX_SY_NATIVE_SQL_ERROR INTO OREF.
LV_SW = SPACE.
ERRORMESSAGE = OREF->GET_TEXT( ).
ENDTRY.
ENDFORM. "connect
This is my Code and I am trying to Create Connection.
But after Completion of all the setting it will not get Connect to SQL.
Please anybody could help me for the same.
Thanks,
Sandip Kokate
Hi All,
Whenever we create a salesorder in SAP, if the item category of the material belongs to TAB (Indiv.Purchase Order), system creates purchase requisition and later creates PO based on that PR. This is standard out-of-box functionality that SAP delivered.
We have a requirement that, we will be having a pre-released PR with bulk quantity for the same material. Whenever we create sales orders for this material, we need to refer this existing PR within the salesorder and create individual PO subsequently for each sales order.
I.e Multiple sales orders need to be used the same existing PR, and create a separate PO for with reference to the salesorder.
Is there any userexit/badi that is available in salesorder creation, to replace the functionality of creating new PR with the existing pre-approved PR number and item number?
Any help is greatly appreciated.
Thanks,
Raghava.
hi,
go to se24 ,give class name cl_exithandler press display button and go to menthod get_instance and put break point. execute the transaction.
Go to se11, give table name and got to utilities->Table maintenance generator.
and fill the required fields. then TMG will create.
So now u can create,delete enteries.