Doubts in Vl02n & VT02n
Experts,
I have a doubt in the FS given to me, the requirement is to post an Idoc on clicking SAVE button on the last screen of the transactions VT02n and VL02n.
Some of the fields of Idoc mentioned are
a) STOTYPE: MEPO_TOPLINE-BSART linked to PO LIPS-VGBEL when Idoc is created by VT02n or VL02n.
where STO is LIPS-VGBEL.
b) MATERIALDOCUMENTNUMBER: Field MMHIPO_MAINLIST-MBLNR linked to STO and being a GI movement when Idoc is created by VT02n or VL02n.
c) MATERDOCUMENTNUMBERITEM: Field MMHIPO_MAINLIST-MBLPO linked to the STO and being a GI movement when Idoc is created by VT02n or VL02n.
My doubt here what is the exact field they are refering to imean the above fields STOTYPE,MATERIALDOCUMENTNUMBER and MATERDOCUMENTNUMBERITEM Please help me out.
Regards,
Ram.
Hi
To help you out I am enlisting the standard table fields corresponding to the data given to you in the FS.
a) <b>STOTYPE</b> - it is the Purchasing Document type , Table EKKO and field name <b>EKKO-BSART = Purchasing Document type</b>
b) <b>MATERIALDOCUMENTNUMBER</b> - It is the Material Document Number
Table MKPF ( Material Doc Header) or MSEG (Document Segment: Material)
Field Name <b>MSEG - MBLNR = Number of material document</b>
c) <b>MATERDOCUMENTNUMBERITEM</b> - It is the Item Number of the Material Document
Table MSEG
Field <b>MSEG - ZEILE = Item in material document</b>
Field type MBLPO
Please reward if useful
Similar Messages
-
Doubt in BAPI_HU_PACK and VL02N
Hi Experts,
I Have a Application where i am using BAPI_HU_CREATE and BAPI_HU_PACK and BAPI_HU_UNPACK, everthing is working fine.
After creating HU and PACK that material it generates HU and EXIDV in VEKP and VEPO create a record. ( I am using Delivery no as input here ). For that delivery no i am checking in VL02N transaction, there is no HU and Pack material at PACK tab. In item overivew items are displaying, when i check by click PACK button there is no records and HU there?
Now my doubt is by using this BAPI Created HU is displayed at VL02N or Not? or to display i need to pass any key to this BAPIS..
Please clarify me..
Thanks,
Venkat.Hi All,
Earlier Pick quantity is not updated, now i done that part. Now pick quanitity is updating and HU are creating through my rpogram.
But while checking for same delivery in VL02N Transaction pick quantity is updated but Packing is not updated( no packing material and no HU displayed for that item), is there any key value to set to update HU details.. Please help...
Thanks
Venkat. -
DESADV is not generated during Goods issue from VT02N.
Hello,
DESADV is generating during goods issue from VL02N.
But DESADV is not generated during Goods issue from VT02N.
Any idea what was missing?
I maintained the variant of RV56ABST for Delivery message with output type LAVA and Medium 6 (EDI).
Thanks,
VenkatI got reply from SAP. It is as follows:
Please goto tcode VL10CUC. For Profile 2000, please check whether
indicator "No OutputDet." is flagged.
Please unflag that indicator and then retest.
Please read note 1410599 for more inforamtion.
Thanks,
Venkat. -
Hi Gurus ,,
I have added one button in "Deadl" tab of the main screen of VT02N ..
Now i want to create authorization object for that button ..
How to do that ????
Pls Give Guidance ..
Thnx in advance,
Regards,
Nishit.1) Create Authorization object :
2) use below code
* Check authority based on order change transaction code VA02
AUTHORITY-CHECK OBJECT 'S_TCODE'
ID 'TCD'
FIELD 'VL02N'.
IF sy-subrc <> 0.
MESSAGE e398 WITH 'You Dont have authorizations to use this Tcode'.
ENDIF.
3) or you can use function module
call FUNCTION 'AUTHORITY_CHECK_TCODE'
EXPORTING
tcode = v_tcode
EXCEPTIONS
ok = 1
not_ok = 2
OTHERS = 3.
~Satya -
Change document tracking for VT02N
I have a requirment where I have to trigger IDOC when ever shipment(VT02N) changes, this means not just going to change mode and saving the transaction, only if there a value change in any of the field.
I tried using CDHDR table but none of the changes get traced in this table. For transaction like VA02 & VL02N it working but not for VT02N.
Is there a way I can check these field value changes(for VT02N) and trigger an IDOC.
Thanks in Advance.Hello Hari,
Please check the standard workflow template "WS00400012" which is related to the 'Release for payment' and the triggering event for the template 'CREATED' event of the BO 'BSEG'. Activate the event linkage and check whether the system will automatically publish the event 'CREATED' of the business object.
Make use of the event and create the workflow template accordingly.
Hope this will help.
Thanks,
Samson -
hi i have a doubt....
in fbl1n transaction, there are open items and cleared items.
in it the cleared items for certain document types such as invoice etc is not present in the open item table (bsik)
however the cleared items for document types such as general voucher its present in the open items table (bsik)
is this possible as all cleared item entries shld b present in the open item table with an indicator set for cleared or not...
plz exlain!Hi
There are 2 tables(open and Closed Items) in FI for Account Payables and Account Receivables and GL accounts
1.Account payables: BSIK is Open Items and BSAK is Closed items
2.Account Receivables; BSID and BSAD for OPEN and closed items
3/GL accounts : BSIS and BSAS for Open and Closed Items
<b>Reward points for useful Answers</b>
Regards
Anji -
Changing the field content of 'wrbtr' in accounting document during Post Goods Issue in VL02N
Hi Experts,
I have requirement ,where I need to change the 'amount in document currency value (wrbtr)' in line item of a accounting document, which is created as part Post Goods issue through VL02N.
I have already check BADI's below as follows:-.
1) LE_SHP_GOODSMOVEMENT- No accounting document information flows in this BADI.
2) AC_DOCUMENT - Field 'WRBTR' is not available in substitutable fields list.
3) BTE-1050 - This BTE is not getting triggered while doing PGI.
Please suggest any other possibilities to make the change.
Thanks & Regards,
Suganth.Hi Kartik,
I have checked the enhancement you specified, but it didn't trigger during PGI. Can u please let me know is there any other possibilities to make the change.
Thanks
Suganth. -
Creation of PGI using BDC for tc VL02N is not happening..
Hi All,
i need to do Post Goods Issue (PGI) thro' BDC and after that i need to update the flag in Ztable.
its giving Success message and updating the database also.
but its not issuing the PGI.and further i want to create billing doc.So its compulsory to me to post PGI.
if i look into the BDCMSGCOLL structure its giving "NO BATCH INPUT DATA FOR SCREEN"? why this is happening?
please let me know immediately....
REFRESH: tt_bdcmsgcoll .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_created-document_numb
IMPORTING
output = wa_created-document_numb.
REFRESH tt_bdcdata.
PERFORM bdc_dynpro USING text-001 text-002.
PERFORM bdc_field USING text-008
text-014.
PERFORM bdc_field USING text-009
text-011.
PERFORM bdc_field USING text-014
wa_created-document_numb.
PERFORM bdc_dynpro USING text-001 text-003.
PERFORM bdc_field USING text-009
text-036.
PERFORM bdc_field USING text-025
sy-datum.
PERFORM bdc_field USING text-008
text-035.
PERFORM bdc_field USING text-037
sy-datum.
PERFORM bdc_field USING text-038
text-029.
PERFORM bdc_field USING text-016
c_x.
CALL TRANSACTION c_t_del USING tt_bdcdata
MODE c_m
UPDATE c_u
MESSAGES INTO tt_bdcmsgcoll .
SORT tt_bdcmsgcoll BY msgtyp.
READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_e.
IF sy-subrc EQ 0.
LOOP AT tt_bdcmsgcoll INTO wa_bdcmsgcoll WHERE msgtyp = c_e.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = wa_bdcmsgcoll-msgid
lang = text-010
no = wa_bdcmsgcoll-msgnr
v1 = wa_bdcmsgcoll-msgv1
v2 = wa_bdcmsgcoll-msgv2
v3 = wa_bdcmsgcoll-msgv3
v4 = wa_bdcmsgcoll-msgv4
IMPORTING
msg = v_msg
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
WRITE :/ v_msg.
ENDLOOP.
ELSE.
MOVE : c_x TO wa_worklist-pgi_flag.
READ TABLE tt_epit INTO wa_epit WITH KEY epi_id = wa_worklist-epi_id epi_sr = wa_worklist-epi_sr.
IF sy-subrc EQ 0.
MODIFY tt_epit FROM wa_worklist TRANSPORTING pgi_flag WHERE epi_id = wa_worklist-epi_id AND epi_sr = wa_worklist-epi_sr.
ELSE.
APPEND wa_worklist TO tt_epit.
ENDIF.
wa_epit-pgi_flag = c_x.
MODIFY tt_epit FROM wa_epit TRANSPORTING pgi_flag WHERE epi_id = wa_worklist-epi_id AND del_no = wa_created-document_numb .
UPDATE zsd_dt_epit SET pgi_flag = 'X' WHERE epi_id = wa_worklist-epi_id AND del_no = wa_created-document_numb .
IF sy-subrc EQ 0.
ENDIF.
ENDIF.HI,
Please refer this
To perform Post goods issue
PERFORM OPEN_GROUP.
PERFORM BDC_DYNPRO USING 'SAPMV50A' '4004'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LIKP-VBELN'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=WABU_T'.
PERFORM BDC_FIELD USING 'LIKP-VBELN' DELIVERY.
'84000064'.
PERFORM BDC_TRANSACTION USING 'VL02N'.
PERFORM CLOSE_GROUP.
CLEAR : DELIVERY,
T_BSITEM,
T_BSICTL.
ENDIF.
ENDFORM. " DELIVERY -
Doubt in creation of a new object
Hi All,
I have one doubt in creation of a new object.If a new object is to be created and it is not a subtype
of any existing object, then what should we enter in the Program field for creating the object?
I hope I am clear with my question.
Thanks in Advance,
Saket.Hi Saket,
Following will be required for created a custom business object.
1. Object Type - ZTEST (Internal Techincal Key)
2. Object Name - ZTESTNAME (Technical Key Name)
3. Name - TEST (Name of BO, it is used while selecting the object type)
4. Description - (Short Description of BO)
5. Program - ZTESTPROGRAM (ABAP program in which the methods of the object type are implemented)
6. Application - A or B.. etc (Area to which your BO is related)
Please remember that you can learn these basic things by giving F1 help on those fields and in HELP.SAP.COM.
Regards,
Gautham Paspala -
Hi Everyone,
Can we read and validate the attachment of the mail.If so how to do it.
Thanks in advance,
SakthiHi Sakthi,
Please refere the below links:
http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/bf93409c663228e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/0d/52b240ac052817e10000000a1550b0/frameset.htm
Let me know if you have any doubts regarding this.
Thanks,
sekhar. -
Not able to capture Data in VL02N through BADI (LE_SHP_DELIVERY_PROC)
Hello Experts!!!
Iu2019m trying to capture all the FINALL DATA whenever there is any change made to Delievery Document (VL02N). To accomplish this Iu2019m using BADI LE_SHP_DELIVERY_PROC. Now the problem is even though this BADI triggers when I choose any delivery document. But only comes in CHANGE_FIELD_ATTRIBUTES method. I put break point in all the following methods but after going into CHANGE_FIELD_ATTRIBUTES method it just save the delivery document (WITHOUT SHOWING ME THE FINALL DATA, WHICH I WANT TO SAVE IN A FILE AND A CUSTOME TABLE AS WELL.)
Here is the list of methods I set break point in. But non of them triggers except CHANGE_FIELD_ATTRIBUTES.
u2022 READ_DELIVERY
u2022 DELIVERY_FINAL_CHECK
u2022 SAVE_AND_PUBLISH_DOCUMENT
u2022 SAVE_DOCUMENT_PREPARE
u2022 FILL_DELIVERY_HEADER
u2022 FILL_DELIVERY_ITEM
Can anybody tell me what am I suppose to do in order to capture the FINALL DATA.
Points will be rewarded on suitable answer.Hi,
You use DELIVERY_FINAL_CHECK method for saving all the final data. When you are entering any value in the screen field, there the value is stored under IT_XLIKP. So this you can use and all the data with be captured by this parameter in DELIVERY_FINAL_CHECK method.
For Example when you are gonna change the value in VL02n,
for the field Bill-of -Laden, there you can use this code. I mean when you are validating that field, then this IT_XLIKP is used.
method IF_EX_LE_SHP_DELIVERY_PROC~DELIVERY_FINAL_CHECK .
DATA : WA_BOLNR TYPE BOLNR.
DATA : WA_LIKP TYPE LIKP.
READ TABLE IT_XLIKP INTO WA_LIKP INDEX 1.
IF SY-SUBRC = 0.
SELECT SINGLE BOLNR FROM ZBOLNR INTO WA_BOLNR
WHERE BOLNR = WA_LIKP-BOLNR.
IF SY-SUBRC <> 0.
MESSAGE e001(0) WITH 'Enter correct value for Bill of laden'.
exit.
ENDIF.
ENDIF.
ENDMETHOD.
Here I have validated the ' Bill of Laden ' field in changing the outbound delivery document.
So, I captured the value in IT_XLIKP and declared another work area WA_LIKP of that same type and moved the value from that parameter to the WA_LIKP and then I validated that value with my Z table whether it is matching or not and displayed some Error messsage.
I think this may helps you.
Reward points if it helps you
Cheers,
Swamy Kunche -
PI' RFC Connection pool doubt.
Hi PI exports:
i have a doubt about pi' RFC Connection pool ,pi RFC receive channel can set the conn pool size ,but when start the rfc receiver channel ,is there always only one Connection pool ,or there is only one Connection pool instance?
thinks
Edited by: kevin liang on Oct 19, 2009 6:45 AMHi,
Connection poolins size means how many number of connection you want to make open to send data to ECC, We can define maximum number of connection in Receiver RFC Adapter,Go to additional parameters section and define Max Number of connection give the number there,thats it.Internally it works as Connection poolin mechanism.
Regards,
Raj -
Small Doubt Regarding SY-MANDT
Hi All,
SELECT changenr FROM cdhdr CLIENT SPECIFIED INTO CORRESPONDING FIELDS OF TABLE it_cdhdr
WHERE mandant = syst-mandt
AND objectclas = 'MATERIAL'
AND objectid = wa_matl-matnr
AND tcode = 'MM02'.
I have written the select stament as shown above.
In this i have a doubt like adding a field sy-mandt in the where condition will increase the Efficiency of program or not.
regards,
raghu.Hi..
No doubt the efficency would be affected but from business point of view there will many things that need to be checked as in:
If you are viewing data from CDHDR and CDPOS which is client specific then you are not viewing complete data.
These tables give us and document changes made to a particular object in SAP but if anything is cross client like company code(lets assume) then changes to it wont be visible in all the clients..
so there can be some key information you can miss out while working on some of the objects.
else in this case its good to make query cross client.
regards
vishal -
Doubts with control break statements on internal table loops (AT/ENDAT)
Hi, i've had a couple of doubts for a long while which I hope someone can clarify today:
1) I know how to use the AT statements, however, i'm not sure I get correctly what this part of help regarding this commands means:
<i>"The control level structure with internal tables is static. It corresponds exactly to the sequence of columns in the internal table (from left to right). In this context, the criteria according to which you sort the internal table are unimportant."</i>
I've always sorted the internal table before the control break and it works that way. For example:
SORT ITAB BY EBELN EBELP.
LOOP AT ITAB.
AT NEW EBELN.
* Code for the order header
ENDAT.
ENDLOOP.
If I <b>don't</b> sort the internal table, it doesn't work! (i get dupplicated processing). In the example, if i have more than one register with the same EBELN and they're not consecutive, the header gets processed twice. I really don't get that part of the help text.
2) I know this: <i>"At the start of a new control level (i.e. immediately after AT), the following occurs in the output area of the current LOOP statement:
All character type fields (on the right) are filled with "*" after the current control level key.
All other fields (on the right) are set to their initial values after the current control level key."</i>
My doubt is: WHY is that this way? Because sometimes (most times) I need those fields INSIDE the statement! So when that happened i've solved it in one of three ways:
LOOP AT ITAB INTO WA_ITAB.
WA_ITAB_AUX = WA_ITAB.
AT NEW FIELD.
WA_ITAB = WA_ITAB_AUX.
* ...Rest of the code for the first register
ENDAT.
ENDLOOP.
LOOP AT ITAB INTO WA_ITAB.
AT NEW FIELD.
READ TABLE ITAB INDEX SY-TABIX INTO WA_ITAB.
* ...Rest of the code for the first register
ENDAT.
ENDLOOP.
* (Without AT)
LOOP AT ITAB INTO WA_ITAB.
IF WA_ITAB-FIELD <> FIELD_AUX.
FIELD_AUX = WA_ITAB_FIELD.
* ...Rest of the code for the first register
ENDIF.
ENDLOOP.
Is there any problem with this way of coding? Can be done better?
Thank you very much in advance.Hi..,
1)
See if u sort the table on a field on which u r using AT ENDAT .. then all the records which are having the same value for that field will form a group or those reocrds will be at one place.. so when u sort the table for all the records AT ENDAT will get executed onli once..
If u dont sort this table on this field then all these records will be at different places and in between there may be records with different value for this field.. so this AT ENDAT will get executed for each record !!
2)
No u cannot use the Right hand fields of the field in the table .. Because these AT events work as Group based operations... So till that field on which AT ENDAT is working it breaks that record into two groups.. One is the left hand fields including that field.. and right hand fields as another group.. and makes the right hand group as stars ****. Thats y u can observe that even any one field in the left hand group changes the AT ENDAT will get executed !!!!
Hope u understood !!!
regards,
sai ramesh -
CREATE PACKAGE EMP_PKG AS
CURSOR EMP_CUR IS
SELECT EMPNO,DEPTNO,SAL,HIREDATE
FROM EMP
WHERE DEPTNO=30;
PROCEDURE P_EMP;
PROCEDURE P_GET_SAL(V_EMPNO NUMBER);
PROCEDURE P_GET_LOC(V_EMPNO NUMBER);
Now inside my Package Body
INSIDE THE MAINPROCEDURE P_EMP
I WILL BE CALLING THE BELOW TWO PROCEDURES
PROCEDURE P_EMP
BEGIN
FOR I IN EMP_CUR LOOP
P_GET_SAL(I.EMPNO);-- DO I NEED TO LOOP AGAIN IN P_GET_SAL PROC?
P_GET_LOC(I.DEPTNO);
END LOOP;
END;
NOW WHAT IAM DOING IS
in my P_GET_SAL Procedure is
PROCEDURE P_GET_SAL(V_EMPNO NUMBER)
V_SAL EMP.SAL%TYPE;
BEGIN
FOR I IN EMP_CUR LOOP
SELECT SAL INTO V_SAL FROM EMP
WHERE EMPNO=I.EMPNO --DOUBT HERE
END;
I WANT TO KNOW WHETHER I NEED TO LOOP AGAIN
HERE OR INSTEAD OF THAT
PROCEDURE P_GET_SAL(V_EMPNO NUMBER)
V_SAL EMP.SAL%TYPE;
BEGIN
SELECT SAL INTO V_SAL FROM EMP
WHERE EMPNO =V_EMPNO;
END;
SINCE iam calling V_EMPNO WITH CURSOR FROM MY
MAINPROCEDURE ..
WILL THE PROCEDURE USES THE CURSOR VALUES
AND LOOP ITSELF FOR EVERY EMPLOYEE TO
GET THE SALALRY ?
PLEASE LET ME KNOW SINCE MY PACKAGE IS MORE THAN 3000
LINES I cant proceed unless its confirmed i can
do so ..Hi all,
Thanks for Looking into my Problem
I Got answer by MySelf ..i dont need to loop again my sub procedures
if i try to do that iam getting the error
ERROR at line 1:
ORA-06511: PL/SQL: cursor already open
Thank you all once again ..
Maybe you are looking for
-
Mac crashing multiple times a day - help :(
For about a week now, my mac has been crashing persistently. It seems to happen more often when I have a larger program open like if I'm playing a game or watching a movie, but it has happened at any and all times. Sometimes it just freezes, sometime
-
Back arrow not working in Safari
After a recent Maverick update, the 'back' arrow in Safari mostly will not work. I have to go to 'Home' and start all over in my searches. Very frustrating and a major waste of time. Can anyone suggest what to do to fix this so I can use the back
-
Why can't I connect my mini to a wireless network?
Please help! I moved into an apartment and trying to join my roommate's wireless. I have entered his Network name and password and tried this every way I can think of but always get "Connection timeout" as a response. my roommate's macbook shows abou
-
EPMA Essbase BSO cube with text measures
Hi everybody , I am using Oracle EPM 11.1.2.2 I am trying to deploy a essbase BSO cube with text measures from EPMA. In EPMA the text list has to be created as a smartlist dimension. I have even kept the Account member with data type as Text as the f
-
Do we have any API to Lock-Unlock the User
Hi all, i want to check the status of the user(Unlock or locked) through my webdynpro application and depending on the condition,i want to change the status. please guide me in doing so. Thanks and Regards, Mithileshwar Dayal Sahu.