Transaction Type field not getting value in F-05 transaction
Hi All,
When ever we are doing a reverse posting for foreign currency valuation using F.05 Tcode it will create a BDC session where we can execute this batch Input session thru SM37.
This will use F-05 Tcode to post the the entries, but the problem is one of the field Transaction Type is not getting value for some of the GL account numbers range. This is totally SAP standard program take cares of it. Transaction type field value shuld be populated by '990' value for this GL account range, this is fixed. So is thr any User exit or Screen exit for this Tcode or how we can populate the value....
Help me...
Chandar
Edited by: Bala Chandar on Feb 12, 2009 1:25 PM
Edited by: Bala Chandar on Feb 12, 2009 1:28 PM
Edited by: Bala Chandar on Feb 12, 2009 1:33 PM
Hi Mr/Mrs Bala Chander,
I am having the same problem.
When running F.05 a BIM is created for GL account X. GL account X has a field status in which transaction type is defined as a required field because of BCS / ECCS. We have a substitution rule in place which should default the transaction type, based on several criteria. But when executing the BIM, I see that nothing is filled in field transaction type. Did you find a proper solution for your problem? Changing the field status is not an option in my opinion.
Regards,
Joep
Similar Messages
-
Hi,
I have added the standard field REMNG field to the ds 2lis_02_scl and I am not seeing any values either in rsa3 or psa. Can anyone suggest if anyone have seen this problem before.
BTW in RSA6 ...field only is selected, so do we need to uncheck it ? As I dont see any code written in CMOD for it. Please suggest some clues.
Thanks,HI,
After activating the datasource did you fill the setup tables again for that application.If not then give a try to it and see if it works or not.
In the mean time i will search on the same issue.
Hope it helps.
Regards,
AL -
How to make valuation type field not changeable in delivery tab of PO
Hai friends,
I am new to badis..please guide me to solve the issue...
how to make valuation type field not changeable in delivery tab of PO...
The field shd be in display mode only ...actually...there a badi has been used before
to get valuation type from a ztable depending on material and plant...
Now ..my requirement is that the user shd not change the default value brought from the ztable...Hi SRINIVAS,
You can achieve this from BADI only if BADI is allows you to do this. You cannot achieve everything from a BADI. Check if there is any expoting field in the methods that can be ticked for making the field in display mode. If not then you cannot achieve this from BADI.
The field you want to default to display is a standard or zfield. If z, then you can changethe attribute of the screen field to Output only.
Regards,
Manish -
Output Message Type MAHN not getting picked up in PO
Hello Experts
I have configured customized output type ZMAH (similar to MAHN) for reminder process. When I am creating PO this output type is not getting picked up automatically. If I am maintaining it manually I am able to send message for ME9F (Purchase Order) and ME91F (Reminder) successfully. Upon deremination analysis I am getting this message 502 " Output ignored (requirement 103 not fulfilled) ". Reminder are getting picked up from Purchase Value Key to PO.
Any help is appreciated.
Thanks
AnkitHello Tej
I have maintained output device but same result.
Here I am listing all parameters that I have used for configuration can anyone please take a look and let me know if I am missing anything
Steps for new Message Type for PO Reminder (ZMAH)
1. Defined new Table 026 Purchasing Output Determination: Document Type
(ii) 027 Purchasing Output Determination: Purch. Org./Vendor for EDI
2. Defined new access sequence Z515 Access Sequence for Archiving.
Following are parameters to the Access Sequence
Access Sequence Number = 1
Table = 026
Description = Purchasing Output Determination: Document Type
Requirement = 103
Exclusive = Yes (box checked)
Access Sequence Number = 2
Table = 027
Description = Purchasing Output Determination: Purch. Org./Vendor for EDI
Requirement = 103
Exclusive = Yes (box checked)
3. Maintain Output Type ZMAH for PO
General Data
Access Sequence = Z515
Access to condition (Checked)
Multiple Issuing (Checked)
Change Output
Program = SAPFM06P
FORM Routine = ENTRY_NEU
Replacement of Text Symbol
Program = SAPMM06E
FORM Routine = TEXT_SYMBOL_REPLACE
Default Values
Dispatch Time = Send Immediately (when saving application)
Transmission Medium = External Send
Communication Strategy = 0001 (E-mail Document)
Processing Routines
Transmission Medium = 5 (External Send)
Program = SAPFM06P
Form Routine = ENTRY_NEU
Form = MEDRUCK
Partner Roles
Medium = External Send
Funct = VN
Name = Vendor
4. Fine-Tuned Control: Purchase Order
Oprat. = 3
CType = ZMAH
Name = Output for Reminder
Short Text = Urging letter (expediter)/reminder
Update Print Related Data = Yes (checked)
5. Maintain Message Determination Schema: Purchase Order
Procedure RMBEF1 (Purchase Order)
Step = 101
Cntr = 3
CTyp = ZMAH
Description = Output for Reminder
Requirement = 103
6. Assign Schema to Purchase Order
Procedure RMBEF1
7. Define Partner Roles for Purchase Order
Out. = ZMAH
Med = 5 (External Send)
Funct = VN
Name = Output for Reminder
Name = Vendor
8. Test Condition Maintained in MN04 (Master Data)
Purch. Org. = 0001
Vendor = 101281
Partner Funct = VN
Medium = 5 (External Send)
Date/Time = 4 Send immediately (when saving application)
Output Device = LP01
Cover Page Text = Reminder PO number &EKKO-EBELN&
Also I have configured Purchasing Value Key, reminders are coming to PO correctly.
Thanks
Ankit -
Condition type is not get in the PO output
Hi,
I have defined a new condition type ZRA0- Discount as discount charges .
The condition type is not getting print out in PO copy.
The vendor wants to see in the PO copy.
Pls suggest how to configure
Regards
SpHi,
If i understood your problem, you would like to print the discount in PO print copy along with price.ok.
then check with your Abaper,he can fetch the Discount value for that perticular condition type(ZRA0) & print in the PO copy.Its depends on the print programme to get the data from the document to the print out.
Regds -
About not getting value in wa_vbap from it_vbap.
REPORT ZSIMPLEALV.
TABLES: VBAK, VBAP, SSCRFIELDS.
TYPE-POOLS: SLIS.
TYPES: BEGIN OF TY_VBAK,
VBELN TYPE VBAK-VBELN,
BSTDK TYPE VBAK-BSTDK,
KUNNR TYPE VBAK-KUNNR,
END OF TY_VBAK.
TYPES: BEGIN OF TY_VBAP,
VBELN TYPE VBAP-VBELN,
POSNR TYPE VBAP-POSNR,
MATNR TYPE VBAP-MATNR,
KWMENG TYPE VBAP-KWMENG,
VRKME TYPE VBAP-VRKME,
ARKTX TYPE VBAP-ARKTX,
WERKS TYPE VBAP-WERKS,
NETPR TYPE VBAP-NETPR,
END OF TY_VBAP.
TYPES: BEGIN OF TY_FINAL,
VBELN TYPE VBAK-VBELN,
BSTDK TYPE VBAK-BSTDK,
KUNNR TYPE VBAK-KUNNR,
POSNR TYPE VBAP-POSNR,
MATNR TYPE VBAP-MATNR,
KWMENG TYPE VBAP-KWMENG,
VRKME TYPE VBAP-VRKME,
ARKTX TYPE VBAP-ARKTX,
WERKS TYPE VBAP-WERKS,
NETPR TYPE VBAP-NETPR,
END OF TY_FINAL.
DATA: IT_VBAK TYPE TABLE OF TY_VBAK,
WA_VBAK TYPE TY_VBAK.
DATA: IT_VBAP TYPE TABLE OF TY_VBAP,
WA_VBAP TYPE TY_VBAP.
DATA: IT_FINAL TYPE TABLE OF TY_FINAL,
WA_FINAL TYPE TY_FINAL.
DATA: IT_CATLOG TYPE SLIS_T_FIELDCAT_ALV,
GT_SORT TYPE SLIS_T_SORTINFO_ALV,
WA_CATLOG TYPE SLIS_FIELDCAT_ALV,
GS_LAYOUT TYPE SLIS_LAYOUT_ALV.
SELECTION-SCREEN BEGIN OF BLOCK B1 .
SELECT-OPTIONS: PO_DAT FOR vbak-bstdk.
SELECTION-SCREEN END OF BLOCK B1 .
START-OF-SELECTION.
PERFORM GET_DATA_FROM_VBAK.
PERFORM GET_DATA_FROM_VBAP.
PERFORM WRITE_DATA_TO_FINAL.
END-OF-SELECTION.
PERFORM SHOW_DATA.
*& Form GET_DATA_FROM_VBAK
text
--> p1 text
<-- p2 text
FORM GET_DATA_FROM_VBAK .
SELECT VBELN BSTDK KUNNR
FROM VBAK
INTO TABLE IT_VBAK
WHERE BSTDK IN PO_DAT.
ENDFORM. " GET_DATA_FROM_VBAK
*& Form GET_DATA_FROM_VBAP
text
--> p1 text
<-- p2 text
FORM GET_DATA_FROM_VBAP .
SELECT VBELN POSNR MATNR KWMENG VRKME ARKTX WERKS NETPR
FROM VBAP
INTO TABLE IT_VBAP
FOR ALL ENTRIES IN IT_VBAK
WHERE VBELN = IT_VBAK-VBELN.
ENDFORM. " GET_DATA_FROM_VBAP
*& Form WRITE_DATA_TO_FINAL
text
--> p1 text
<-- p2 text
FORM WRITE_DATA_TO_FINAL .
REFRESH IT_FINAL.
LOOP AT IT_VBAP INTO WA_VBAP WHERE VBELN = VBAK-VBELN.
WA_FINAL-VBELN = WA_VBAP-VBELN.
WA_FINAL-POSNR = WA_VBAP-POSNR.
WA_FINAL-MATNR = WA_VBAP-MATNR.
WA_FINAL-KWMENG = WA_VBAP-KWMENG.
WA_FINAL-VRKME = WA_VBAP-VRKME.
WA_FINAL-ARKTX = WA_VBAP-ARKTX.
WA_FINAL-WERKS = WA_VBAP-WERKS.
WA_FINAL-NETPR = WA_VBAP-NETPR.
IF SY-SUBRC IS INITIAL.
READ TABLE IT_VBAK INTO WA_VBAK WITH KEY VBELN = WA_VBAP-VBELN.
WA_FINAL-VBELN = WA_VBAK-VBELN.
WA_FINAL-KUNNR = WA_VBAK-KUNNR.
ENDIF.
APPEND WA_FINAL TO IT_FINAL.
CLEAR: WA_FINAL, WA_VBAP, WA_VBAK.
ENDLOOP.
ENDFORM. " WRITE_DATA_TO_FINAL
"tell me anybody 'why am i not getting value in wa_vbap from it_vbap?.Hello Mr:Sardar,
There are a lot thinks we need to notice while writing a report.
First of all VBAP is an item table and VBAK is a header table. For each header data there can be multiple item data. So your report should loop over header data first
Let it be
loop at it_vbak into wa_vbak.
endloop.
Now wa_vbak will contain one header data, for this header there can be more than one item data in vbap.
now the code will become
loop at it_vbak into wa_vbak.clear wa_vbap.
loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.
wa_final-vbeln = wa_vbak-vbeln.
append wa_final to it_final.
endloop.
endloop.
Another thing u must take care of is that while u are using FOR ALL ENTRIES in your select statement, check whether this itab is initial or not.If itab is initial program will fetch all the data irrespective of conditions. Please read F1 help for for all entries.
Hope this will help you.
Regards,
Antony Thomas -
NOT Getting Values for LOCATION...on MultiProvider REPORT
HI All,
I have a MultiProvider on 4 cubes.All these 4 cubes having object LOCATION. I can see data in all cubes for LOCATION. I am running a report on this MultiProvider.
Problem:
I am not getting Values for LOCATION. Why?
What I did:
I checked all location objects of all 4 cubes @ MultiProvider level .
I didn't use any Infoprovider in Qry designer sections.
Please suggest. What is the reason how to solve..
THanks & Regards.
Sri.
Edited by: siri26 k on Dec 5, 2008 10:41 AM
Edited by: siri26 k on Dec 5, 2008 10:41 AMhello,
in the identification tab of the MP,make sure you have checked all four checkboxes across the 4 infoproviders.
then in Listcube T-Code, select your MP,display the records based on selection inputs and see if location is populated.
If the data is not coming in listcube, then it will not come in the Query too.
Reg,
Dhanya -
Not getting values in the variable
Hi experts,
in this program
i want VBPA-vbeln = xblnr....but there is a data length error. so I ahve declare one variavble of length 10. & i am moving this xblnr to this variable but not getting value in that variable that i am moving..& give me the possible solutions...
when '0FI_AR_4'.
data: t_DTFIAR_3 like DTFIAR_3 occurs 0 WITH HEADER LINE.
data: BEGIN OF t_DTFIAR_3 occurs 0.
include structure DTFIAR_3.
data: xblnr1(10).
data: END OF t_DTFIAR_3.
data : BEGIN OF t_partner occurs 0,
VBELN like vbpa-VBELN,
parvw like vbpa-PARVW,
kunnr like vbpa-kunnr,
END OF t_partner.
data : xblnr1(10).
t_DTFIAR_3[] = C_T_DATA[].
move t_DTFIAR_3-xblnr to t_DTFIAR_3-xblnr.
select VBELN PARVW kunnr
into table t_patner
from vbpa
FOR ALL ENTRIES IN t_DTFIAR_3
where VBELN = t_DTFIAR_3-xblnr.
SORT t_partner BY VBELN PARVW.
loop at t_DTFIAR_3.
loop at t_partner where VBELN = t_DTFIAR_3-xblnr1.
if t_partner-PARVW = 'ZA'.
t_DTFIAR_3-YPARVW1 = t_partner-PARVW.
t_DTFIAR_3-YPART1 = t_partner-kuNNR.
elseif t_partner-PARVW = 'ZR'.
t_DTFIAR_3-YPARVW2 = t_partner-PARVW.
t_DTFIAR_3-YPART2 = t_partner-kuNNR.
ELSEif t_partner-PARVW = 'ZE'.
t_DTFIAR_3-YPARVW3 = t_partner-PARVW.
t_DTFIAR_3-YPART3 = t_partner-kuNNR.
ELSEif t_partner-PARVW = 'ZS'.
t_DTFIAR_3-YPARVW4 = t_partner-PARVW.
t_DTFIAR_3-YPART4 = t_partner-kuNNR.
ENDIF.
MODIFY t_DTFIAR_3.
endloop.
ENDLOOP.
C_T_DATA[] = t_DTFIAR_3[] .
Thanks in advanceHI,
While moving use the WRITE TO option.
WRITE VBPA-vbeln TO xblnr.
Regards
Sudheer -
Enhanced Datasource fields not getting displayed in Transformation
Hi,
Eventhough after replicating the datasource, the Enhanced Datasource fields not getting displayed in Transformation.
Eg I have done mapping of 6 fields in transformation from datasource to DSO
Now the datasource is enhanced with 8 fields...........The transformation is not showing the added 2 fields
I am deleting the existing transformation.Is this the only solution?
Kindly suggest your answers.
Thanks,
Sonu.HI,
Deleting is not solution as it is common scnerio.
Go to the data source in BW and in change mode check the option "transfer" for this two fields and then see if its coming or not.
Thanks
Ajeet -
Set type is not getting filled
Hi ,
I have created a set type ZTLS_ORG, which is organisation dependent. This set type has fields from table MVKE. I am filling up the fields of this set type in an enhacement of Badi Definition Customer_product2. But the values are not getting populated, when I am checking it in product master through commpr01. Kindly suggest.
Regards
ShwetaHello Shweta,
You mean to say that attributes of your settype is nothing but fields from table MVKE?
Have you generated the settype before using it in your program?
Best Regards,
Shanthala Kudva. -
Field not getting updated in BDC while running in background
Hi Friends,
I'm executing a BDC transaction to update the Alternate Tax Classification (VBAK_TAXK1) field in Sales Order. I'm passing value 1 to the field and then saving it directly. While running the BDC in background, the field is not getting updated. On the other hand i checked it running in foreground, the field got updated without any error message.
Can anybody help me advicing why the field is not getting updated in background?
Thanks,
BestinHi ,
Check the the log if you are using a session method and if call transaction then capture the messages for the same,
Because in the foreground the BDC will update the records even if there is a warning message nut in background it will not update. So check the data which you are inserting and try avoid the warning messages also so that it can run smoothly in backfround.
Thanks & Regards
Jyo -
XREF3 field not getting populated in BSEG table while posting MIRO
Hi,
I have one query in MIRO tcode.I have activated xref3 field in MIRO tcode using enhancement LMR1MF6Q.Now when i try to post document with some values in xref3 field on screen ,value is not getting populated in BSEG table.Please tell me what else needs to be done to achieve this ?
any hint on this?
Thanks & Regards,
Soniya S.Hi,
1.- According to SAP Note 904652 - MIRO: Different from FB60
https://service.sap.com/sap/support/notes/904652
MIRO is an independent Materials Management (MM) transaction that does not
claim to be the same as the accounting transactions (such as FB60 or FB01).
MIRO was developed to allow users to process vendor invoices within the
context of the MM procurement processes as simply as possible.
For this reason, among other differences, the field selection was limited
to the absolutely necessary. For example, the following fields from the
accounting document are not available in Transaction MIRO (this list is not
complete):
Reference key (BSEG-XREF1, -XREF 2, -XREF 3)
2.- SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment
https://service.sap.com/sap/support/notes/1156325
Have a look at badi MRM_ITEM_CUSTFIELDS.
This badi will create a new tab at item level in order to display the new fields.
I haven´t used this badi so i cannot talk from experience here.
Think twice before deciding.
Best regards. -
Screen Fields Not getting Updated with DYNP_VALUES_UPDATE
Hi All,
I am using FM DYNP_VALUES_READ to read the screen field values and then modifying those values and passing the modified table to DYNP_VALUES_UPDATE. But the problem is screen fields are not populated with these values . The values I wish to populate are footer values . I am using OO ALV for this wherein I am handling an event for filter of records and accordingly I need to modify my footer. Any Suggestions??
*& Form footer
Caslculate Total items, number of hits/Miss and percent MSP
--> p1 text
<-- p2 text
FORM footer .
CLEAR : io_totitems,
io_tothit,
io_totmiss,
io_permiss.
IF NOT l_flag EQ 1.
Get total items
DESCRIBE TABLE i_outdata LINES io_totitems.
LOOP AT i_outdata INTO wa_outdata.
calculate number of hits
IF wa_outdata-hit_miss = 'HIT'.
io_tothit = io_tothit + 1.
ENDIF.
calculate number of Miss
IF wa_outdata-hit_miss = 'MISS'.
io_totmiss = io_totmiss + 1.
ENDIF.
CLEAR wa_outdata.
ENDLOOP.
calculate percent MSP
io_permiss = ( ( io_totitems - io_totmiss ) / io_totitems ) * 100 .
IF l_flag EQ 1.
wa_dynpread-fieldname = 'IO_TOTITEMS'.
APPEND wa_dynpread TO t_dynpread.
wa_dynpread-fieldname = 'IO_TOTHIT'.
APPEND wa_dynpread TO t_dynpread.
wa_dynpread-fieldname = 'IO_TOTMISS'.
APPEND wa_dynpread TO t_dynpread.
wa_dynpread-fieldname = 'IO_PERMISS'.
APPEND wa_dynpread TO t_dynpread.
CLEAR wa_dynpread.
d020s-prog = sy-repid.
d020s-dnum = sy-dynnr.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = d020s-prog
dynumb = d020s-dnum
translate_to_upper = 'X'
REQUEST = ' '
TABLES
dynpfields = t_dynpread.
MOVE io_totitems TO io_totitem.
CONDENSE io_totitem NO-GAPS.
MOVE io_tothit TO io_tothits.
CONDENSE io_tothits NO-GAPS.
MOVE io_totmiss TO io_totmis.
CONDENSE io_totmis NO-GAPS.
MOVE io_permiss TO io_permis.
CONDENSE io_permis NO-GAPS.
LOOP AT t_dynpread INTO wa_dynpread.
CASE: wa_dynpread-fieldname.
WHEN 'IO_TOTITEMS'.
wa_dynpread-fieldvalue = io_totitem .
MODIFY t_dynpread FROM wa_dynpread.
WHEN 'IO_TOTHIT'.
wa_dynpread-fieldvalue = io_tothits.
MODIFY t_dynpread FROM wa_dynpread.
WHEN 'IO_TOTMISS'.
wa_dynpread-fieldvalue = io_totmis.
MODIFY t_dynpread FROM wa_dynpread.
WHEN 'IO_PERMISS'.
wa_dynpread-fieldvalue = io_permis .
MODIFY t_dynpread FROM wa_dynpread.
ENDCASE.
CLEAR wa_dynpread.
ENDLOOP.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = d020s-prog
dynumb = d020s-dnum
TABLES
dynpfields = t_dynpread
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
Get all fotter details in a internal table
this is used to download footer in Excel
wa_footer-fldname = 'Total Items '.
wa_footer-value = io_totitems.
APPEND wa_footer TO i_footer.
wa_footer-fldname = 'Number of HIT'.
wa_footer-value = io_tothit.
APPEND wa_footer TO i_footer.
wa_footer-fldname = 'Number of MISS'.
wa_footer-value = io_totmiss.
APPEND wa_footer TO i_footer.
wa_footer-fldname = 'Percentage MISS '.
wa_footer-value = io_permiss.
APPEND wa_footer TO i_footer.
CLEAR wa_footer.
ENDFORM. " footerdata: t_dynfields1 type table of dynpread with header line.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = d020s-prog
dynumb = d020s-dnum
translate_to_upper = 'X'
REQUEST = ' '
TABLES
dynpfields = t_dynfields1.
<b>read table t_dynfields1 index 1</b> I hope this is missing
I will be selecting from a list .
Because once the value is read we need to update the screen field with that value .
Here the selected value will be in the first place
Now
Your operation is to populate the fields with some variables .
In the same when I do this there is only one value then
Im expecting only one entry here
LOOP AT t_dynpread INTO wa_dynpread.
CASE: wa_dynpread-fieldname.
WHEN 'IO_TOTITEMS'.
wa_dynpread-fieldvalue = io_totitem .
MODIFY t_dynpread FROM wa_dynpread.
WHEN 'IO_TOTHIT'.
wa_dynpread-fieldvalue = io_tothits.
MODIFY t_dynpread FROM wa_dynpread.
WHEN 'IO_TOTMISS'.
wa_dynpread-fieldvalue = io_totmis.
MODIFY t_dynpread FROM wa_dynpread.
WHEN 'IO_PERMISS'.
wa_dynpread-fieldvalue = io_permis .
MODIFY t_dynpread FROM wa_dynpread.
ENDCASE.
CLEAR wa_dynpread.
ENDLOOP. */
Comment this for a while and
Change the code as
t_dynfields1-fieldname = ' '. "<--- header name
t_dynfields1-fieldvalue = ' '."<----val
append t_dynfields1.
t_dynfields1-fieldname = ' '.
t_dynfields1-fieldvalue = ' '.
append t_dynfields1.
t_dynfields1-fieldname = ' '.
t_dynfields1-fieldvalue = ' '.
append t_dynfields1.
And check .
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = d020s-prog
dynumb = d020s-dnum
TABLES
dynpfields = t_dynfields1.
regards,
vijay -
BAPI_MATERIAL_SAVEDATA-Tax fields not getting updated.
Hi Everyone,
I'm trying to create material through this BAPI -"BAPI_MATERIAL_SAVEDATA"
I'm also passing the tax information related to it in the TAXCLASSIFICATIONS table.I'm populating the fields in the format as I have shown below in the code.Everything is working fine ,material is getting created except the tax information in the material not being affected against what I'm passing.I'm not sure though what does the tax_ind field does in the TAXCLASSIFICATIONS table.
Specifically,The country CA has different type codes mentioned as CATX1,CATX2,CATX3.But the values are getting updated only for the CATX1 category code.So after the creation, All the countries have their taxes classified except and CATX2 and CATX3 remain blank-no entry at all.
Kindly let me know if you have a clue regarding this.
FUNCTION Z_CREATE_MATERIAL.
*"*"Local Interface:
*" IMPORTING
*" VALUE(MATERIAL) TYPE MARA-MATNR OPTIONAL
*" VALUE(MATDESC) TYPE MAKT-MAKTX OPTIONAL
*" VALUE(KBETR) TYPE BDCDATA-FVAL OPTIONAL
*" VALUE(MATCOST) TYPE STPRS_BAPI OPTIONAL
*" EXPORTING
*" VALUE(MESSAGE) TYPE STRING
DATA: BAPI_HEAD LIKE BAPIMATHEAD,
BAPI_MAKT LIKE BAPI_MAKT, "Material Description
BAPI_MARA1 LIKE BAPI_MARA, "Client Data
BAPI_MARAX LIKE BAPI_MARAX,
BAPI_MARC1 LIKE BAPI_MARC, "Plant View
BAPI_MARCX LIKE BAPI_MARCX,
BAPI_MBEW1 LIKE BAPI_MBEW, "Accounting View
BAPI_MBEWX LIKE BAPI_MBEWX,
BAPI_RETURN LIKE BAPIRET2,
bapi_sales like BAPI_MVKE,
bapi_salesx like BAPI_MVKEX,
bapi_mard like BAPI_mard,
bapi_mardx like BAPI_mardx.
DATA: BEGIN OF INT_MAKT OCCURS 100.
INCLUDE STRUCTURE BAPI_MAKT.
DATA: END OF INT_MAKT.
DATA: BEGIN OF L_T_MARM OCCURS 100.
INCLUDE STRUCTURE BAPI_MARM.
DATA: END OF L_T_MARM.
DATA: BEGIN OF L_T_MARMx OCCURS 100.
INCLUDE STRUCTURE BAPI_MARMx.
DATA: END OF L_T_MARMx.
DATA: BEGIN OF L_T_tax OCCURS 100.
INCLUDE STRUCTURE BAPI_MLAN.
DATA: END OF L_T_tax.
*for plant 3800
* Header
BAPI_HEAD-MATERIAL = MATERIAL.
BAPI_HEAD-IND_SECTOR = '1'.
BAPI_HEAD-MATL_TYPE = 'HAWA'.
BAPI_HEAD-BASIC_VIEW = 'X'.
bapi_head-SALES_VIEW = 'X'.
bapi_head-PURCHASE_VIEW = 'X'.
BAPI_HEAD-ACCOUNT_VIEW = 'X'.
bapi_head-cost_view = 'X'.
bapi_head-mrp_view = 'X'.
* Client Data - Basic
BAPI_MARA1-BASE_UOM = 'EA'.
BAPI_MARA1-UNIT_OF_WT = 'LB'.
BAPI_MARA1-ALLWD_VOL = '10'.
BAPI_MARA1-PACK_VO_UN = 'CCM'.
bapi_marax-ALLWD_VOL = 'X'.
bapi_marax-PACK_VO_UN = 'X'.
BAPI_MARA1-DIVISION = '00'.
BAPI_MARA1-NET_WEIGHT = '1'.
BAPI_MARA1-MATL_GROUP = '002'.
BAPI_MARa1-TRANS_GRP = '0001'.
bapi_mara1-prod_hier = '001700010000000110'.
BAPI_MARAX-trans_grp = 'X'.
bapi_marax-prod_hier = 'X'.
BAPI_MARAX-BASE_UOM = 'X'.
BAPI_MARAX-UNIT_OF_WT = 'X'.
BAPI_MARAX-DIVISION = 'X'.
BAPI_MARAX-MATL_GROUP = 'X'.
BAPI_MARAX-NET_WEIGHT = 'X'.
bapi_mara1-ITEM_CAT = 'NORM'.
BAPI_MARAX-item_cat = 'X'.
*Units of measure - Gross weight populate
L_T_MARM-ALT_UNIT = 'EA'.
L_T_MARM-ALT_UNIT_ISO = 'EA'.
L_T_MARM-GROSS_WT = '1'.
L_T_MARM-UNIT_OF_WT = 'LB'.
L_T_MARM-VOLUME = '100'.
L_T_MARM-VOLUMEUNIT = 'CCM'.
L_T_MARMX-VOLUME = 'X'.
L_T_MARMX-VOLUMEUNIT = 'X'.
APPEND L_T_MARM.
L_T_MARMX-UNIT_OF_WT = 'X'.
L_T_MARMX-GROSS_WT = 'X'.
L_T_MARMX-ALT_UNIT = 'EA'.
L_T_MARMX-ALT_UNIT_ISO = 'EA'.
APPEND L_T_MARMX.
*Tax Classification
L_T_tax-DEPCOUNTRY = 'US'.
L_T_tax-DEPCOUNTRY_ISO = 'US'.
L_T_tax-TAX_TYPE_1 = 'UTXJ'.
L_T_tax-TAXCLASS_1 = '1'.
append l_t_tax.
L_T_tax-DEPCOUNTRY = 'DE'.
L_T_tax-DEPCOUNTRY_ISO = 'DE'.
L_T_tax-TAX_TYPE_1 = 'MWST'.
L_T_tax-TAXCLASS_1 = '1'.
append l_t_tax.
L_T_tax-DEPCOUNTRY = 'CA'.
L_T_tax-DEPCOUNTRY_ISO = 'CA'.
L_T_tax-TAX_TYPE_1 = 'CTX1'.
L_T_tax-TAXCLASS_1 = '0'.
append l_t_tax.
L_T_tax-DEPCOUNTRY = 'CA'.
L_T_tax-DEPCOUNTRY_ISO = 'CA'.
L_T_tax-TAX_TYPE_1 = 'CTX2'.
L_T_tax-TAXCLASS_1 = '0'.
append l_t_tax.
L_T_tax-DEPCOUNTRY = 'CA'.
L_T_tax-DEPCOUNTRY_ISO = 'CA'.
L_T_tax-TAX_TYPE_1 = 'CTX3'.
L_T_tax-TAXCLASS_1 = '0'.
append l_t_tax.
L_T_tax-DEPCOUNTRY = 'AU'.
L_T_tax-DEPCOUNTRY_ISO = 'AU'.
L_T_tax-TAX_TYPE_1 = 'ATX1'.
L_T_tax-TAXCLASS_1 = '0'.
append l_t_tax.
L_T_tax-DEPCOUNTRY = 'NZ'.
L_T_tax-DEPCOUNTRY_ISO = 'NZ'.
L_T_tax-TAX_TYPE_1 = 'NZTX'.
L_T_tax-TAXCLASS_1 = '0'.
append l_t_tax.
* Material Description
REFRESH INT_MAKT.
INT_MAKT-LANGU = 'EN'.
INT_MAKT-MATL_DESC = MATDESC.
APPEND INT_MAKT.
* Plant - Purchasing
BAPI_MARC1-PLANT = '3800'.
BAPI_MARC1-PUR_GROUP = '100'.
BAPI_MARCX-PLANT = '3800'.
BAPI_MARC1-ISS_ST_LOC = '0001'.
BAPI_MARC1-SLOC_EXPRC = '0001'.
BAPI_MARCx-PUR_GROUP = 'X'.
BAPI_MARCX-ISS_ST_LOC = 'X'.
BAPI_MARCX-SLOC_EXPRC = 'X'.
BAPI_MARC1-LOADINGGRP = '0002'.
BAPI_MARCx-LOADINGGRP = 'X'.
BAPI_MARC1-PLND_DELRY = '1'.
BAPI_MARC1-MRP_TYPE = 'PD'.
BAPI_MARC1-MRP_CTRLER = '001'.
BAPI_MARC1-SM_KEY = '001'.
BAPI_MARC1-LOTSIZEKEY = 'TB'.
BAPI_MARC1-PROC_TYPE = 'F'.
BAPI_MARCx-PLND_DELRY = 'X'.
BAPI_MARCx-MRP_TYPE = 'X'.
BAPI_MARCx-MRP_CTRLER = 'X'.
BAPI_MARCx-SM_KEY = 'X'.
BAPI_MARCx-LOTSIZEKEY = 'X'.
BAPI_MARCx-proc_type = 'X'.
BAPI_MARC1-MRP_GROUP = '0030'.
BAPI_MARCx-MRP_GROUP = 'X'.
*Sales View
bapi_sales-SALES_ORG = '3020'.
bapi_sales-DISTR_CHAN = '14'.
bapi_sales-DELYG_PLNT = '3800'.
BAPI_SALES-ITEM_CAT = 'NORM'.
bapi_salesx-ITEM_CAT = 'X'.
bapi_salesx-Delyg_plnt = 'X'.
bapi_salesx-sales_org = '3020'.
bapi_salesx-DISTR_CHAN = '14'.
bapi_sales-MATL_STATS = '1'.
bapi_salesx-MATL_STATS = 'X'.
* Accounting
BAPI_MBEW1-VAL_AREA = '3800'.
BAPI_MBEW1-VAL_CLASS = '3100'.
BAPI_MBEW1-STD_PRICE = matcost.
BAPI_MBEW1-PRICE_CTRL = 'V'.
bapi_mbew1-PRICE_UNIT = '1'.
BAPI_MBEWX-VAL_AREA = '3800'.
BAPI_MBEWX-PRICE_CTRL = 'X'.
BAPI_MBEWx-STD_PRICE = 'X'.
BAPI_MBEWX-VAL_CLASS = 'X'.
bapi_mbewx-price_unit = 'X'.
bapi_mard-plant = '3800'.
bapi_mard-stge_loc = '0001'.
bapi_mardx-plant = '3800'.
bapi_mardx-stge_loc = '0001'.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
HEADDATA = BAPI_HEAD
CLIENTDATA = BAPI_MARA1
CLIENTDATAX = BAPI_MARAX
PLANTDATA = BAPI_MARC1
PLANTDATAX = BAPI_MARCX
* FORECASTPARAMETERS =
* FORECASTPARAMETERSX =
* PLANNINGDATA =
* PLANNINGDATAX =
STORAGELOCATIONDATA = bapi_mard
STORAGELOCATIONDATAX = bapi_mardx
VALUATIONDATA = BAPI_MBEW1
VALUATIONDATAX = BAPI_MBEWX
* WAREHOUSENUMBERDATA =
* WAREHOUSENUMBERDATAX =
SALESDATA = bapi_sales
SALESDATAX = bapi_salesx
* STORAGETYPEDATA =
* STORAGETYPEDATAX =
* FLAG_ONLINE = ' '
* FLAG_CAD_CALL = ' '
* NO_DEQUEUE = ' '
* NO_ROLLBACK_WORK = ' '
IMPORTING
RETURN = BAPI_RETURN
TABLES
MATERIALDESCRIPTION = INT_MAKT
UNITSOFMEASURE = L_T_MARM
UNITSOFMEASUREX = L_T_MARMX
* INTERNATIONALARTNOS =
* MATERIALLONGTEXT =
TAXCLASSIFICATIONS = l_t_tax
* RETURNMESSAGES =
* PRTDATA =
* PRTDATAX =
* EXTENSIONIN =
* EXTENSIONINX =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Any suggestions on this one would really mean a lott of help to me.
Thanks a lot,
Archies!!Hi James ,
I' m not sure but could you please try like this
L_T_tax-DEPCOUNTRY = 'CA'.
L_T_tax-DEPCOUNTRY_ISO = 'CA'.
L_T_tax-TAX_TYPE_1 = 'CTX1'.
L_T_tax-TAXCLASS_1 = '0'.
L_T_tax-TAX_TYPE_2 = 'CTX2'.
L_T_tax-TAXCLASS_2 = '0'.
append l_t_tax.
Hope this helps
Caglar -
Contract item customer fields not getting saved from ITS side??
Hi there,
I have had to add "account assignment" details to a contract item (3 fields: account assignment, G/L account and cost center)...
All is going fine....in fact the 3 fields have been added on the contract item level in function group BBP_CTR_UI_ITS screen 4100. I followed the instructions in SAP note number 458591 "user defined fields: preparation and use"...
The 3 fields I added where "generated" down to SAP table level and now appear in table BBP_PDIGP...
Also when I create a contract from transaction BBP_CTR_MAIN and fill my 3 new fields in on the item level all works fine when I release the contract...the contract item gets created and the 3 new fields appear nicely in table BBP_PDIGP....so from the GUI side all is PERFECT...
I have worked on the ITS side of things quite a bit but now I clearly don't understand something...
I go to "internet service" BBP_CTR_MAIN - template SAPLBBP_CTR_UI_ITS 4100.....I have added my code and my 3 fields display perfectly on the web page....for each contract item.....
As I said I can make the contract with the 3 new fields filled perfectly via the GUI (transaction BBP_CTR_MAIN)....and if I VIEW that contract on the web it also displays perfect with the 3 filled in fields....
If I COPY that contract.....and save the new one, the 3 fields are still fine, all saved.
NOW COMES THE PROBLEM:-)
If I create a new contract from the web, fill in my 3 fields on the contract item level THE 3 FIELD VALUES SEEM TO NOT GET POSTED BACK AND SAVED IN THE SRM DATABASE...
I have tried everything from using FIELD-GET, FIELD-SET...the note I mentioned above mentions some BADI's that I could possibly use:
BBP_CUF_BADI_2 (modify screen methods etc)
BBP_DOC_SAVE_BADI
All I really want to try understand is how interaction between the user clicking on the web page and the SAP GUI screen flow is really happening.....I mean I see in function group BBP_CTR_UI_ITS there are a number of function modules with ITS in them, are those function modules just called when the user is clicking on the web (via ITS etc) - I would assume so...
Bottomline is I need what is happening in the SAP GUI to happen on the web as well.....it is almost there, I just need a push in the right direction so that I can grab the fields from the web page, in the most standard way possible.
Thanks for the help, I am very curious to see how this sort of solved.
Regards
LyntonHe Yann,
We are running SRM 3.0, EBP 4.0 - support pack 8
Thanks for the help
Lynton
Maybe you are looking for
-
How to lock a period in Essbase but the app is Planning app?
Hi! I am using Planning v11.1.1.3 and have a Planning app. The requirement is that user can read/write data directly to Essbase via Smartview. I lock a particular period, e.g. Oct, in Scenario dimension so the user cannot write data to Oct in Plannin
-
ITunes says there is almost a GB of photos on my iPod touch, but I only have 6 pictures
Hello Apple community: I have an 8GB iPod touch, 4th Gen. I am trying to make some space for movies, iOS 6 upgrades, etc. and I noticed on iTunes' "iPod touch summary page", there is almost a gig of pictures, even though I only have abou 6 pictures,
-
Does anyone know of a way to make the "preset" field in the Print dialog box always default to a particular value? The current behavior, in Leopard at least, is for the preset field to be set to the previous choice. I typically print using a preset c
-
Determining Number of Rows in a ResultSet
Hi, Is there an easy way to determine the number of rows in a result set with TYPE_FORWARD_ONLY?
-
How to save data in spred sheet file as it is ?
hello, I want to save one table in spred sheet file same as i read from my external device. here in attachment I have attached the vi. that is the sample data which i want to save for example in first column i want only numbers without any floating p